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

Coverity analysis defect 142885: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Execution
    • ALL

      Wrapper object use after free

      A use after free bug would occur if the internal pointer is used. An internal pointer of a wrapper object remains available after the object is freed
      /src/mongo/db/query/get_executor.cpp:1713: WRAPPER_ESCAPE 142885 Calling "get" which extracts wrapped state from local "cq".
      /src/mongo/db/query/get_executor.cpp:1713: WRAPPER_ESCAPE 142885 The internal representation of local "cq" escapes into "deleteStageParams->canonicalQuery", but is destroyed when it exits scope.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: