[SERVER-68016] Use little endian for deserializing data serialized by BufBuilder Created: 13/Jul/22  Updated: 29/Oct/23  Resolved: 19/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.1, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Rui Liu Assignee: Rui Liu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-65880 BufBuilder shouldn't be used to seria... Open
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QE 2022-07-25
Participants:

 Description   

In the below code reference, we are deserializing data that's serialized by BufBuilder, which is LittleEndian by default. This caused problem https://jira.mongodb.org/browse/BF-24912 before.

https://github.com/10gen/mongo/blob/85409b314c52efaa1987d50291f2779dfa314328/src/mongo/db/exec/document_value/document_metadata_fields.cpp#L238-L241



 Comments   
Comment by Githook User [ 28/Jul/22 ]

Author:

{'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}

Message: SERVER-68016 Use little endian for deserializing data serialized by BufBuilder

(cherry picked from commit 5ecdd383565058346f1ade42b438c190b7f13ad2)
Branch: v6.0
https://github.com/mongodb/mongo/commit/96a8cae8108842586852dd8b1ea6b9583feb0763

Comment by Githook User [ 14/Jul/22 ]

Author:

{'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}

Message: SERVER-68016 Use little endian for deserializing data serialized by BufBuilder
Branch: master
https://github.com/mongodb/mongo/commit/5ecdd383565058346f1ade42b438c190b7f13ad2

Generated at Thu Feb 08 06:09:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.