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

Coverity analysis defect 134193: Freed internal location read

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL

      Freed internal location read

      Reading from freed memory can cause wrong values to be read and crashes due to illegal memory accesses. Reads target of a freed internal pointer
      /src/mongo/db/s/global_index/global_index_cloning_service.cpp:430: WRAPPER_ESCAPE 134193 Calling "front" which extracts wrapped state from "this->this->_fetchedDocs".
      /src/mongo/db/s/global_index/global_index_cloning_service.cpp:430: WRAPPER_ESCAPE 134193 Assigning: "next" = "this->this->_fetchedDocs.front()".
      /src/mongo/db/s/global_index/global_index_cloning_service.cpp:439: WRAPPER_ESCAPE 134193 Calling "pop" invalidates the internal representation of "this->this->_fetchedDocs".
      /src/mongo/db/s/global_index/global_index_cloning_service.cpp:441: WRAPPER_ESCAPE 134193 Using invalidated internal representation of "this->this->_fetchedDocs".

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: