[SERVER-42060] Limit maximum recursion depth for KeyString _appendBsonValue and toBsonValue Created: 03/Jul/19  Updated: 29/Oct/23  Resolved: 15/Aug/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.2.1

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: execution_intern_2019
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Execution Team 2019-08-12
Participants:

 Description   

Both _appendBsonValue and toBsonValue should limit their maximum recursion depth to 200, which is also the maximum BSON recursion depth.

If this limit is exceeded, throw an exception.



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

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-42060 Limit maximum recursion depth for KeyString toBsonValue

(cherry picked from commit 43503a9e56fbf3a0fbdd4e780b1ec438ccc74ee4)
Branch: v4.2
https://github.com/mongodb/mongo/commit/1709766d352d838fe36edc4537ec02a0a5d2c92f

Comment by Githook User [ 15/Aug/19 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: Revert "SERVER-42060 Limit maximum recursion depth for KeyString toBsonValue"

This reverts commit ae3d5c001957ba70d366ccb16209f61869e4c9f2.
Branch: v4.2
https://github.com/mongodb/mongo/commit/f78574419dfff4b1b271ea19448f800883efb2b1

Comment by Githook User [ 14/Aug/19 ]

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-42060 Limit maximum recursion depth for KeyString toBsonValue

(cherry picked from commit 43503a9e56fbf3a0fbdd4e780b1ec438ccc74ee4)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ae3d5c001957ba70d366ccb16209f61869e4c9f2

Comment by Githook User [ 08/Aug/19 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-42060 Limit maximum recursion depth for KeyString toBsonValue
Branch: master
https://github.com/mongodb/mongo/commit/43503a9e56fbf3a0fbdd4e780b1ec438ccc74ee4

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