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

XMLWordPrintableJSON

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

      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 Tan
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: