Coverity analysis defect 101168: Wrapper object use after free

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: JavaScript
    • Fully Compatible
    • ALL
    • Platforms 2017-07-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An internal pointer of a wrapper object remains available after the object is freed

      Defect 101168 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/scripting/mozjs/proxyscope.cpp
      Function mongo::mozjs::MozJSProxyScope::implThread(void *)
      /src/mongo/scripting/mozjs/proxyscope.cpp, line: 336
      The internal representation of local "scope" escapes into "proxy->_implScope", but is destroyed when it exits scope.

                  proxy->_implScope = scope.get();
      

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: