createRegex() in bsoncolumn_builder_fuzzer.cpp test code needs work

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • v8.0, v7.0, v6.0, v5.0
    • Execution Team 2024-11-11, Execution Team 2024-11-25, Execution Team 2024-12-09
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See this line. There are two main issues:

      1) The BSON format requires that the pattern and options in a regex do not have embedded NUL bytes, but this test doesn't filter them out.
      2) options is passed as the second argument to appendRegex(fieldName, pattern, options = "") so it isn't doing what it claims to.

              Assignee:
              Stephanie Eristoff
              Reporter:
              Mathias Stearn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: