[SERVER-42657] Attempting to insert a document larger than 16793600 bytes crashes a 4.2.0-rc6 server Created: 07/Aug/19  Updated: 29/Oct/23  Resolved: 07/Aug/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.0-rc6
Fix Version/s: 4.2.0-rc8, 4.3.1

Type: Bug Priority: Critical - P2
Reporter: Shane Harvey Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongod.log    
Issue Links:
Duplicate
is duplicated by SERVER-43219 BSONObj DataType Handler is unsafe Closed
Problem/Incident
is caused by PYTHON-1943 PyMongo does not validate bson docume... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-08-12
Participants:

 Description   

Attempting to insert a document larger than 16793600 bytes crashes a 4.2.0-rc6 server. See the backtrace in the attached mongod.log.

On 4.0.11 the same OP_MSG request returns a command error response to the client with "assertion src/mongo/util/hex.cpp:98".



 Comments   
Comment by Githook User [ 07/Aug/19 ]

Author:

{'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com', 'username': 'jbreams'}

Message: SERVER-42657 Make DataType<BSONObj> noexcept safe

(cherry picked from commit d7455e67f5b002de110f7972603906888aff66b8)
Branch: v4.2
https://github.com/mongodb/mongo/commit/e2de2b23e821614a8c3117fa8650b910f44c7638

Comment by Githook User [ 07/Aug/19 ]

Author:

{'name': 'Jonathan Reams', 'username': 'jbreams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-42657 Make DataType<BSONObj> noexcept safe
Branch: master
https://github.com/mongodb/mongo/commit/d7455e67f5b002de110f7972603906888aff66b8

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