[SERVER-60172] Fix bug where Simple8b tries to store too large values in some cases Created: 23/Sep/21  Updated: 29/Oct/23  Resolved: 24/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

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
Operating System: ALL
Steps To Reproduce:

Store 0x646075fffc000200 in Simple8b

Participants:

 Description   

It does not take into account bits needed to store the trailing zero count when checking if the value is within the storable range.

The compressor then segfaults when it proceeds to try to store this value



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 24/Sep/21 ]

Author:

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

Message: SERVER-60172 Fix crash where Simple8b incorrectly tries to store too large values.

Added more testing around invalid values
Branch: master
https://github.com/mongodb/mongo/commit/c607f9b63f4764335749ae40a5762d6a305558c1

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