SERVER-138458ClosedFixed

Make jsobjtests write corrupt BSON consistently across platforms

This dbtest uses a BSONObj with a corrupt size. On little endian systems, the corruption is in the form of it over-reporting its size, so the same message is still thrown. On big endian systems, the corruption is in the form of it reporting a negative size, so that message isn't thrown (a different one appropriate to the situation is though, so no bug). This change fixes the test so it works consistently no matter the endianness of the host system.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.