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

EphemeralForTest oplogStartHack segfaults if startingPosition is behind oplog

    • Fully Compatible
    • ALL
    • Repl 2017-08-21

          Records::const_iterator it = records.lower_bound(startingPosition);
          if (it == records.end() || it->first > startingPosition)
              --it;
      
          return it->first;
      

      This loop should first check that it != records.begin(). Otherwise --it will fall off the front of the map.

            Assignee:
            judah.schvimer@mongodb.com Judah Schvimer
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: