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

reinstate jsobj test suite fuzz tests

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.3.2
    • None
    • Testing Infrastructure
    • None
    • ALL

    Description

      We have a fuzz test in the jsobj unit test suite that fuzzes a BSONObj and calls valid() on it. The goal is to detect cases where valid() can seg fault if it sees invalid bson. It appears that when the unit test framework was rewritten there was an issue introduced where test arguments were not correctly passed to tests. As a result, the fuzz tests were running but not doing any actual fuzzing.

      I recently fixed the issue in the unit test framework, and the fuzz tests have started seg faulting. This likely means the valid() function is now not safe to call on arbitrary data. I am going to disable the fuzz tests for now.

      Attachments

        Activity

          People

            aaron Aaron Staple
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: