[pcre-dev] [Bug 2300] New: character class using \x escape s…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2300] New: character class using \x escape sequence, /i modifier, and backtracking
https://bugs.exim.org/show_bug.cgi?id=2300

            Bug ID: 2300
           Summary: character class using \x escape sequence, /i modifier,
                    and backtracking
           Product: PCRE
           Version: 8.41
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: wims_amer@???
                CC: pcre-dev@???


I don't really know what to say, examples will be better.

https://regex101.com/r/KnnzH8/9

pattern: "/^[^\x{100}-\x{ffff}]*[\x80-\xff]/u"

text: "a é"

This should match but does not.

If you add the /i modifier, it does match

If you add a character at the end of the first character class (\n) (without
/i) it matches:

^[^\x{100}-\x{ffff}\n]*[\x80-\xff]

I've been testing this on mIRC, the irc client, which uses pcre 8.41, I don't
know which version is used by the website.

On the website, there is a debugger for pcre, it shows that pcre backtracks in
a weird way when the bug occurs.

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