[SERVER-8183] validateBSONInternal can cause a stack overflow due to recursive calls Created: 15/Jan/13  Updated: 11/Jul/16  Resolved: 18/Jan/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.3.2
Fix Version/s: 2.4.0-rc0

Type: Bug Priority: Critical - P2
Reporter: Ben Becker Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Run nestedobj1.js and passing 5000 to makeNestedObj() with the latest mongo client from master (needs git commit b6879559f6a87c585915553ca9edb931d0df8e83)

Participants:

 Description   

validateBSONInternal() can crash the server due to recursive calls to traverse an array.



 Comments   
Comment by Andy Schwerin [ 18/Jan/13 ]

SERVER-8229 covers the task of writing more extensive unit tests.

Comment by auto [ 18/Jan/13 ]

Author:

{u'date': u'2013-01-16T18:35:15Z', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}

Message: SERVER-8183 Iterative implementation of validateBSON().
Branch: master
https://github.com/mongodb/mongo/commit/e51b22e4ea37cf6a767561e27f8e316e5d5afd11

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