[SERVER-25895] JS Exceptions can overflow BufBuilder Created: 31/Aug/16  Updated: 19/Nov/16  Resolved: 07/Sep/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.3.12
Fix Version/s: 3.3.14

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

var len = 65 * 1024 * 1024;
var str = new Array(len + 1).join( 'b' );
throw str;

Sprint: Platforms 2016-09-19
Participants:
Linked BF Score: 0

 Description   

BufBuilder has a limit of 64MB. If this limit is hit, an unexpected exception is thrown. The code to process JS exceptions needs to not overflow the BufBuilder.



 Comments   
Comment by Githook User [ 07/Sep/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-25895 JS Exceptions can overflow BufBuilder
Branch: master
https://github.com/mongodb/mongo/commit/40bd5f736fdf42a7032892eef272d3dfacd2e2a2

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