Coverity analysis defect 164215: Wrapper object use after free

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2025-01-20, Repl 2025-02-03
    • 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/repl/replication_coordinator_test_fixture.cpp:180: WRAPPER_ESCAPE 164215 Calling "get" which extracts wrapped state from local "externalState".
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/repl/replication_coordinator_test_fixture.cpp:180: WRAPPER_ESCAPE 164215 The internal representation of local "externalState" escapes into "this->_externalState", but is destroyed when it exits scope.

            Assignee:
            Brad Cater
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: