[SERVER-60883] Large RLE counts are not encoded correctly in Simple8b Created: 21/Oct/21  Updated: 29/Oct/23  Resolved: 21/Oct/21

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

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

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-01
Participants:

 Description   

There is a uint8 that overflows when the count is over 30600: https://github.com/mongodb/mongo/blob/19cf54eb17cf933dfabf5a553660d93319e51713/src/mongo/bson/util/simple8b.cpp#L595



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-60883 Handle large RLE counts correctly in Simple8bBuilder
Branch: master
https://github.com/mongodb/mongo/commit/dcf2db7ccb64d70d7552dd3fc4a3689d45a14cc7

Generated at Thu Feb 08 05:50:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.