[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: |
|
||||||||
| 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: (cherry picked from commit 43503a9e56fbf3a0fbdd4e780b1ec438ccc74ee4) |
| Comment by Githook User [ 15/Aug/19 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: Revert " This reverts commit ae3d5c001957ba70d366ccb16209f61869e4c9f2. |
| Comment by Githook User [ 14/Aug/19 ] |
|
Author: {'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}Message: (cherry picked from commit 43503a9e56fbf3a0fbdd4e780b1ec438ccc74ee4) |
| Comment by Githook User [ 08/Aug/19 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: |