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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.6.6
    • 2.6.7
    • 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

        Issue Links

          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: