Coverity analysis defect 142885: Wrapper object use after free

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: