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

createRegex() in bsoncolumn_builder_fuzzer.cpp test code needs work

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • v8.0, v7.0, v6.0, v5.0
    • Execution Team 2024-11-11

      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@mongodb.com Stephanie Eristoff
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: