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

SyncSourceFeedback::replHandshake() may perform an illegal erase from a std::map in some circumstances

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 2.6.7
    • 2.6.6
    • Replication
    • None
    • Fully Compatible
    • ALL

    Description

      SyncSourceFeedback::replHandshake() calls _slaveMap.erase(_slaveMap.find(removeItr->first)). However, _slaveMap.find(removeItr->first) may return _slaveMap.end(), which is an illegal argument to _slaveMap.erase(). This could lead to memory corruption.

      Attachments

        Activity

          People

            matt.dannenberg Matt Dannenberg
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: