-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: bson-6.4.0
-
Component/s: None
Use Case
As a Node.js BSON library user
I want decode 64 bit floats on big-endian machines
So that I obtain the correct data from BSON
Regression introduced in: https://github.com/mongodb/js-bson/pull/649
User Impact
- Big-endian systems will parse the bytes in reverse order
Dependencies
- NumberUtils.get/setFloat64LE
Unknowns
- Can we enable testing easily?
Acceptance Criteria
Implementation Requirements
- Detect endianness and flip the offset logic inside the float parsing and serializing methods
Testing Requirements
- Manual testing if adding a new evergreen host proves difficult. Follow up with adding CI testing.
Documentation Requirements
- None
Follow Up Requirements
- None
- related to
-
NODE-6018 Add comprehensive BSON test suite to s390x
- Closed