Regex constructor should throw if pattern or flags contain null bytes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.0-alpha1, 1.2.0
    • Affects Version/s: 1.1.8
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BSON's regex type uses null-terminated strings for pattern and flag components. Since values would be truncated by libbson, which uses strlen() internally, we should throw if either argument contains a null byte.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: