Segfault caused by setFunction()

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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().

            Assignee:
            Tad Marshall
            Reporter:
            Ben Becker (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: