Coverity analysis defect 128813: Wrapper object use after free

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Server Serverless 2022-10-17, Server Serverless 2022-10-31, Server Serverless 2022-11-14
    • None
    • 3
    • None
    • 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
      /src/mongo/db/repl/tenant_file_importer_service.cpp:241: WRAPPER_ESCAPE 128813 Calling "get" which extracts wrapped state from local "opCtx".
      /src/mongo/db/repl/tenant_file_importer_service.cpp:241: WRAPPER_ESCAPE 128813 The internal representation of local "opCtx" escapes into "this->_opCtx", but is destroyed when it exits scope.

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

                Created:
                Updated:
                Resolved: