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

PCRE 8.42+ fails to match some regex start verbs

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL
    • v5.0, v4.4, v4.2
    • Dev Platform 2021-09-06, Dev Platform 2021-09-20, Dev Platform 2021-10-04

      There's a logic error in PCRE versions 8.42+ that can cause some valid PCRE regex start verbs to cause a regex compile error. It just so happens that we don't run into this bug on PCRE 8.42 with the regexes in our unit tests, but it was revealed while upgrading to version 8.45 in SERVER-58705 because the order of the items start_options array had changed.

      Additionally, multiple start verbs is legal in PCRE, but that also would not have worked properly in all cases because any verbs after the first would have been wrapped in a non-capturing group, which is what causes the above error as well.

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: