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

renameCollection across DBs uses unowned RecordData after cursor has been yielded

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • 4.2.0
    • Catalog
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2019-11-04, Execution Team 2019-11-18

    Description

      renameBetweenDBs calls cursor->next() and keeps track of an unowned RecordData. After it saves, commits, and restores, it attempts to insert the RecordData it was holding in a prior snapshot.

      This is problematic because the RecordData can point to freed or overwritten memory.

      Attachments

        Activity

          People

            milkie@mongodb.com Eric Milkie
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: