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

Coverity analysis defect 162458: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • 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
      /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@mongodb.com William Qian
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: