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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.2
    • Fix Version/s: 2.0.7, 2.2.0-rc1
    • Component/s: None
    • Labels:
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              renctan Randolph Tan
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: