[pcre-dev] [Bug 930] Using this simple regex : "(?i)ab(?-i)|…

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 930] Using this simple regex : "(?i)ab(?-i)|c" will cause errorcode 23 in pcre_compile
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=930




--- Comment #1 from Philip Hazel <ph10@???> 2009-12-11 16:41:02 ---
On Thu, 10 Dec 2009, Rene wrote:

> when I used some kind of regexs just like "(?i)a(?-i)b|c",
> "(?i)ab(?-i)|c" et., PCRE crashed with errorcode 23 in pcre_compile.
> It seems that if the regex has some modifier( i,m,s...) at the
> beginning, and the opposite modifier appears in the first branch, then
> this error happens. I have tried PCRE 7.8/7.9/8.0, the same result...
>
> looking forward to your response, thanks:)


The patch below, for 8.00, fixes this bug. Thank you for your report.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email