[SERVER-9286] Limit recursive v8 conversion functions to prevent stack overflow Created: 08/Apr/13  Updated: 14/Apr/16  Resolved: 14/Aug/15

Status: Closed
Project: Core Server
Component/s: JavaScript, Security
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Jonathan Reams
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9295 nestedobj1.js failing on OS X Closed
Backwards Compatibility: Fully Compatible
Sprint: Build 7 08/10/15, Build 8 08/31/15
Participants:

 Description   

mongoToLZV8, v8ToMongoElement and related are recursive functions, but they do not currently have a way to specify a maximum recursion depth. This can lead to a segv if a deeply nested object is converted; e.g. in a MapReduce function.



 Comments   
Comment by Jonathan Reams [ 14/Aug/15 ]

This was resolved in SERVER-11781.

Comment by auto [ 09/Apr/13 ]

Author:

{u'date': u'2013-04-09T13:44:17Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-9286 lowering nested depth

This avoids a stack overflow on OS X; full fix in SERVER-9286
Branch: v2.4
https://github.com/mongodb/mongo/commit/cde1ad8f45e65afdbe3a90d1d470ede37ead327a

Comment by auto [ 09/Apr/13 ]

Author:

{u'date': u'2013-04-09T13:44:17Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-9286 lowering nested depth

This avoids a stack overflow on OS X; full fix in SERVER-9286
Branch: v2.4
https://github.com/mongodb/mongo/commit/cde1ad8f45e65afdbe3a90d1d470ede37ead327a

Comment by auto [ 09/Apr/13 ]

Author:

{u'date': u'2013-04-09T13:44:17Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-9286 lowering nested depth

This avoids a stack overflow on OS X; full fix in SERVER-9286
Branch: master
https://github.com/mongodb/mongo/commit/10b42b5a9c9b4fe01eb0832ca8faf384eb742f48

Comment by auto [ 09/Apr/13 ]

Author:

{u'date': u'2013-04-09T13:44:17Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-9286 lowering nested depth

This avoids a stack overflow on OS X; full fix in SERVER-9286
Branch: master
https://github.com/mongodb/mongo/commit/10b42b5a9c9b4fe01eb0832ca8faf384eb742f48

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