[SERVER-4948] reinstate jsobj test suite fuzz tests Created: 13/Feb/12  Updated: 11/Jul/16  Resolved: 28/Dec/12

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-2149 BSONObj::valid and BSONElement::valid... Closed
Related
related to TOOLS-187 Bad bson dump can cause a seg fault o... Closed
Operating System: ALL
Participants:

 Description   

We have a fuzz test in the jsobj unit test suite that fuzzes a BSONObj and calls valid() on it. The goal is to detect cases where valid() can seg fault if it sees invalid bson. It appears that when the unit test framework was rewritten there was an issue introduced where test arguments were not correctly passed to tests. As a result, the fuzz tests were running but not doing any actual fuzzing.

I recently fixed the issue in the unit test framework, and the fuzz tests have started seg faulting. This likely means the valid() function is now not safe to call on arbitrary data. I am going to disable the fuzz tests for now.



 Comments   
Comment by auto [ 28/Dec/12 ]

Author:

{u'date': u'2012-12-27T23:28:43Z', u'email': u'aaron@10gen.com', u'name': u'aaron'}

Message: SERVER-4948 Reinstate bson validation fuzz tests.
Branch: master
https://github.com/mongodb/mongo/commit/7dd78bb5b8b6ed0b64f5e45510585fb3602930d9

Comment by auto [ 13/Feb/12 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-4948 disable jsobj fuzz tests
Branch: master
https://github.com/mongodb/mongo/commit/7423b1654afef8aaadd54ba9fb03c0868f5b15ec

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