[SERVER-16732] SyncSourceFeedback::replHandshake() may perform an illegal erase from a std::map in some circumstances Created: 06/Jan/15 Updated: 19/Jun/15 Resolved: 06/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.6.6 |
| Fix Version/s: | 2.6.7 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Andy Schwerin | Assignee: | Matt Dannenberg |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| 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. |
| Comments |
| Comment by Githook User [ 06/Jan/15 ] |
|
Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}Message: |