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

Αρχική Σελίδα
Delete this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [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

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #3 from Philip Hazel <ph10@???> 2014-06-18 17:33:57 ---
This is a better patch, which I have committed:

--- pcre_compile.c      (revision 1484)
+++ pcre_compile.c      (working copy)
@@ -4694,7 +4694,8 @@
     previous = NULL;
     if ((options & PCRE_MULTILINE) != 0)
       {
-      if (firstcharflags == REQ_UNSET) firstcharflags = REQ_NONE;
+      if (firstcharflags == REQ_UNSET) 
+        zerofirstcharflags = firstcharflags = REQ_NONE;
       *code++ = OP_CIRCM;
       }
     else *code++ = OP_CIRC;


I have also added this pattern to the tests.


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