enabling corruptDocumentOnInsert fail point causes heap-use-after-free violation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-08-24
    • 95
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      validate_repair_mode.js and repair_corrupt_document.js use the corruptDocumentOnInsert fail point to trigger validation errors in the server. The fail point constructs a Record for RecordStore::insertRecords() that references a temporary buffer that is no longer in scope.

      This issue is only present in the tests that use this fail point and does not impact production code.

            Assignee:
            Benety Goh
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: