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

Coverity analysis defect 137537: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Serverless
    • ALL

      Wrapper object use after free
      src/mongo/db/repl/tenant_file_importer_service.cpp

      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:214: WRAPPER_ESCAPE 137537 Calling "get" which extracts wrapped state from local "uniqueOpCtx".
      /src/mongo/db/repl/tenant_file_importer_service.cpp:214: WRAPPER_ESCAPE 137537 Assigning: "opCtx" = "uniqueOpCtx.get()".
      /src/mongo/db/repl/tenant_file_importer_service.cpp:229: WRAPPER_ESCAPE 137537 The internal representation of local "uniqueOpCtx" escapes into "this->_opCtx", but is destroyed when it exits scope.

            Assignee:
            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: