[SERVER-19560] Scope::createFunction does not remove invalid functions from cache, leading to segfault Created: 23/Jul/15  Updated: 19/Sep/15  Resolved: 28/Jul/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.1.6
Fix Version/s: 3.1.7

Type: Bug Priority: Major - P3
Reporter: J Delaney 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 7 08/10/15
Participants:

 Description   

When _createFunction fails to create a function, exceptions are not caught. This leads to a mismatch between the number of functions in the cache and the number actually created, which causes an invalid array access.

This bug only affects SpiderMonkey and does not affect 3.0.x



 Comments   
Comment by Githook User [ 28/Jul/15 ]

Author:

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

Message: SERVER-19560 Don't cache invalid js functions
Branch: master
https://github.com/mongodb/mongo/commit/26bb3e31c489e369921eb115d855aadf94b8ad47

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