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

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.6.6
    • Fix Version/s: 2.6.7
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

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

                Dates

                Created:
                Updated:
                Resolved: