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

Coverity analysis defect 134193: Freed internal location read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • ALL

    Description

      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".

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: