[SERVER-2149] BSONObj::valid and BSONElement::validate can crash if the source data is invalid Created: 25/Nov/10  Updated: 12/Jul/16  Resolved: 19/Dec/12

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

Type: Bug Priority: Major - P3
Reporter: Dwight Merriman Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-4948 reinstate jsobj test suite fuzz tests Closed
Related
related to SERVER-1724 Repair halts with segmentation fault Closed
Operating System: ALL
Participants:

 Description   

They should be safe on any input.
see also SERVER-1724



 Comments   
Comment by Eliot Horowitz (Inactive) [ 19/Dec/12 ]

fixed as part of SERVER-7769

Comment by auto [ 10/Oct/12 ]

Author:

{u'date': u'2012-10-08T21:56:24-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

Message: SERVER-2149 - handle more cases in BSON::valid that can crash
Branch: master
https://github.com/mongodb/mongo/commit/57b4f108ccf6d558832fe61f0d1704349429b7d3

Comment by Eliot Horowitz (Inactive) [ 26/Nov/10 ]

Are there are any known cases not handled now?

Comment by Dwight Merriman [ 25/Nov/10 ]

ok changed priority.

Comment by Robert Fan [ 25/Nov/10 ]

I would contend that this is higher priority than minor if it can crash a master or prevent replication from completing

Comment by auto [ 25/Nov/10 ]

Author:

{'login': 'dwight', 'name': 'dwight', 'email': 'dwight@10gen.com'}

Message: i broke zero case a few minutes ago, fixed. SERVER-2149
/mongodb/mongo/commit/fa436b02241f982a435221778efd6ca0512d9173

Comment by auto [ 25/Nov/10 ]

Author:

{'login': 'dwight', 'name': 'dwight', 'email': 'dwight@10gen.com'}

Message: towards SERVER-2149. not fixed yet but slightly better.
/mongodb/mongo/commit/df3077d5aa985e4f5e32b49cfa11b81968da0f2a

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