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

Coverity analysis defect 128813: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Server Serverless 2022-10-17, Server Serverless 2022-10-31, Server Serverless 2022-11-14

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

              Created:
              Updated:
              Resolved: