[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: |
|
||||
| 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 |