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

Coverity analysis defect 164215: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 8.1 Required
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • ALL
    • Repl 2025-01-20

      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@mongodb.com Brad Cater
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: