[pcre-dev] [Bug 2690] New: Discontinuous behavior with parsi…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2690] New: Discontinuous behavior with parsing of backslash followed by number
https://bugs.exim.org/show_bug.cgi?id=2690

            Bug ID: 2690
           Summary: Discontinuous behavior with parsing of backslash
                    followed by number
           Product: PCRE
           Version: 10.36 (PCRE2)
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: Philip.Hazel@???
          Reporter: davidell@???
                CC: pcre-dev@???


The pattern /\214748363/ is interpreted by parsing the first three digits as
octal and treating the remaining digits as literal numerals, i.e.
/\x{8c}748363/. But with /\214748364/ or any integer 2^31/10 or larger, PCRE2
returns the error "subpattern number is too big".

PCRE1 behaves slightly differently, with /\2147483639/ being parsed as
/\x{8c}7483639/, but /\2147483640/ returning the error "number is too big".

Perl does not do this; it treats the first three digits as an octal character
code, followed by literal interpretation of the remaining numerals, regardless
of how big of a decimal number follows a backslash. For example /\10000000000/
is treated as /@00000000/. PCRE2 should do the same.

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