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

Coverity analysis defect 101168: Wrapper object use after free

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

      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@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: