[pcre-dev] [Bug 2321] New: JIT false match with some unicode…

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 2321] New: JIT false match with some unicode ranges
https://bugs.exim.org/show_bug.cgi?id=2321

            Bug ID: 2321
           Summary: JIT false match with some unicode ranges
           Product: PCRE
           Version: 10.32 (PCRE2)
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: jay@???
                CC: pcre-dev@???


I originally filed this with PHP since it was something I was only seeing in
php 7.3.0RC1, but sounds like it's ultimately a PCRE bug, and only when JIT is
enabled.

https://bugs.php.net/bug.php?id=76909

Full details can be taken from that bug report, but I'll reproduce the basics
here.

This regular expression: /^[\x{0100}-\x{017f}]{1,63}$/iu

Ran against this string: " domain.com" (without the quotes, notice that it
begins with a space)

Matches the string, but as I understand it (and how earlier PHP versions that
are bundled with earlier versions of PCRE process it), there shouldn't be a
match.

As mentioned in the comments of the PHP bug report, if PCRE JIT is disabled,
the string is no longer matched.

Thanks!

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