Coverity analysis defect 134193: Freed internal location read

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v7.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 Tan
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: