renameCollection across DBs uses unowned RecordData after cursor has been yielded

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1, 4.2.2
    • Affects Version/s: 4.2.0
    • Component/s: Catalog
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2019-11-04, Execution Team 2019-11-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Eric Milkie
              Reporter:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: