[pcre-dev] [Bug 1492] First char optimization bug for multi-…

Startseite
Nachricht löschen
Autor: Zoltan Herczeg
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 1492] First char optimization bug for multi-line pattern beginning with clist
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Zoltan Herczeg <hzmester@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hzmester@???





--- Comment #2 from Zoltan Herczeg <hzmester@???>  2014-06-17 17:24:46 ---
Index: pcre_compile.c
===================================================================
--- pcre_compile.c      (revision 1482)
+++ pcre_compile.c      (working copy)
@@ -7923,7 +7923,7 @@
         *code++ = OP_PROP;
         *code++ = PT_CLIST;
         *code++ = c;
-        if (firstcharflags == REQ_UNSET)
+        if (firstcharflags == REQ_UNSET || firstcharflags == REQ_NONE)
           firstcharflags = zerofirstcharflags = REQ_NONE;
         break;
         }


This should help. But I let Philip to decide.


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