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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.7.0
    • None
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-08-24
    • 95

    Description

      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.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: