Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5832

Segfault caused by setFunction()

    • ALL

      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 Tad Marshall
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: