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

Coverity analysis defect 168221: 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
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2025-02-17

      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/ttl/ttl.cpp:601: WRAPPER_ESCAPE 168221 Calling "get" which extracts wrapped state from local "canonicalQuery".
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/ttl/ttl.cpp:601: WRAPPER_ESCAPE 168221 The internal representation of local "canonicalQuery" escapes into "params->canonicalQuery", but is destroyed when it exits scope.

            Assignee:
            binh.vo@mongodb.com Binh Vo
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: