[SERVER-40672] Fix endianness in Symmetric Crypto Smoke Test Created: 16/Apr/19  Updated: 29/Oct/23  Resolved: 17/Apr/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.11

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-04-22
Participants:
Linked BF Score: 36

 Description   

const auto id = cursor.readAndAdvance<SymmetricKeyId::id_type>();

does not specify an endianness, and thus attempts to read the value using machine byte ordering. When this is BigEndian, the value comes out incorrect.



 Comments   
Comment by Githook User [ 17/Apr/19 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}

Message: SERVER-40672 Fix endianness in SymmetricCryptoSmokeTest
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/16e492343288041d26ccf44ebde1ebc80d313a52

Generated at Thu Feb 08 04:55:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.