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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.6.7
    • Affects Version/s: 2.6.6
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: