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

ReplicaSetMonitor::_checkConnection does not check upper bounds for the indexes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.7, 2.2.0-rc1
    • Affects Version/s: 2.0.6, 2.1.2
    • Component/s: None
    • ALL

      There is no check for the nodesOffset variable inside checkConnection. This can cause race condition that can potentially result in accessing the _nodes outside of its bounds. The problem can potentially manifest when whenever members of a replica set shrinks in size.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: