[SERVER-5832] Segfault caused by setFunction() Created: 12/May/12  Updated: 08/Mar/13  Resolved: 17/Jan/13

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.0.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ben Becker Assignee: Tad Marshall
Resolution: Won't Fix Votes: 1
Labels: javascript, spidermonkey
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

setFunction() should check the return value of _compileFunction() before calling JS_GetFunctionObject(). _compileFunction() will return null if JS_CompileFunction() fails.

setFunction() in engine_spidermonkey.cpp L1460 needs to check for a null value before calling JS_GetFunctionObject().



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/Jan/13 ]

switched to v8

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