Autor: ND
Data:
Dla: Pcre-dev
Temat: [pcre-dev] Internal errors and crashes with quantified subroutines
Hi, Philip!
There is some compile time errors when an upper limit of repetition
quantifier increases:
PCRE version 8.20 2011-10-21
/(a)(?2){0,1000}?(b)/
ab
0: ab
1: a
2: b
PCRE version 8.20 2011-10-21
/(a)(?2){0,1350}?(b)/
Failed: internal error: overran compiling workspace at offset 16
PCRE version 8.20 2011-10-21
/(a)(?2){0,1400}?(b)/
Failed: internal error: previously-checked referenced subpattern not found
at offset 19
PCRE version 8.20 2011-10-21
/(a)(?2){0,3000}?(b)/
<CRASH>
If '(?2)' replaces with '(?1)' than no problem happens in all cases.
Take a look at this, please.
PS I'm not well experienced at english but is there 'overran' in error
message must be 'overrun'?