[SERVER-60676] Add more unittests for invalid sub-object compression binaries Created: 13/Oct/21  Updated: 29/Oct/23  Resolved: 29/Oct/21

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

Type: Task 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   

Make sure that the decompressor can handle gracefully without crashing



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

Author:

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

Message: SERVER-60676 Improve robustness when parsing invalid BSONColumn binary or compressed v2 buckets

  • Changed BSONColumn::operator[] interface so we can differentiate skipped element from out of bounds
  • Replaced BadValue error codes in BSONColumn for unique assertion ids
  • Throw exception when interleaved mode exits unexpectedly when it shouldn't
  • Test and handle buckets where the compressed columns contain different amount of fields
    Branch: master
    https://github.com/mongodb/mongo/commit/6e98a462d6e3f2222bc53bc948b60721e7879999
Generated at Thu Feb 08 05:50:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.