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

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

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

      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@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: