Coverity analysis defect 162458: Wrapper object use after free

XMLWordPrintableJSON

    • Query Optimization
    • Fully Compatible
    • ALL
    • None
    • 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/query/classic_runtime_planner/multi_planner.cpp:44: WRAPPER_ESCAPE 162458 Calling "get" which extracts wrapped state from local "stage".
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/query/classic_runtime_planner/multi_planner.cpp:44: WRAPPER_ESCAPE 162458 The internal representation of local "stage" escapes into "this->_multiplanStage", but is destroyed when it exits scope.

            Assignee:
            William Qian (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: