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

Coverity analysis defect 166514: 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:176: WRAPPER_ESCAPE 166514 Calling "get" which extracts wrapped state from local "topo".
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/repl/replication_coordinator_test_fixture.cpp:176: WRAPPER_ESCAPE 166514 The internal representation of local "topo" escapes into "this->_topo", but is destroyed when it exits scope.

            Assignee:
            solomon.lifshits@mongodb.com Solomon Lifshits
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: