[SERVER-21692] MozJSImplscope must immediately check the return value of JS_NewRuntime Created: 30/Nov/15  Updated: 01/Dec/15  Resolved: 30/Nov/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.2.0-rc4
Fix Version/s: 3.2.0-rc5

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform D (12/11/15)
Participants:

 Description   

After some code motion, we're failing to check the return value of JS_NewRuntime until after several functions are called on it. This can lead to null pointer dereferences.



 Comments   
Comment by Githook User [ 30/Nov/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-21692 check return of JS_NewRuntime

Moved an uassert away from a call site. Opens up the chance for nullptr
dereferences.
Branch: master
https://github.com/mongodb/mongo/commit/f9450a619c2df8a2cb5925393095d6044a110afc

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