[pcre-dev] [Bug 2764] New: Regression in JIT matching with ^

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2764] New: Regression in JIT matching with ^
https://bugs.exim.org/show_bug.cgi?id=2764

            Bug ID: 2764
           Summary: Regression in JIT matching with ^
           Product: PCRE
           Version: 10.37 (PCRE2)
          Hardware: x86-64
                OS: MacOS X
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: Philip.Hazel@???
          Reporter: j.boggiano@???
                CC: pcre-dev@???


This pattern:

#(?P<prefix>://|^)(?P<user>[^:/\s@]+):(?P<password>[^@\s/]+)@#i

Started failing to match these strings with 10.37 when jit is enabled:

https://foo:bar@example.org/
http://10a8f08e8d7b7b9:foo@example.org
https://foo:bar@example.org:123/

Somehow removing |^ from the pattern makes it match again, but that does change
its meaning and it would then fail to match URLs without scheme://.

I worked around it for now using:

^(?P<prefix>[a-z0-9]+://)?

Sorry if it's a duplicate of 2762 but it seems quite different and I can't
imagine the recent fix for single char repetitions in JIT fixed this instance.
I did compile pcre2 to try it out but unfortunately pcre2test tells me I can't
enable jit so that does not let me test it.

--
You are receiving this mail because:
You are on the CC list for the bug.