[pcre-dev] [Bug 1451] Ungreedy and min/max quantifier

Kezdőlap
Üzenet törlése
Szerző: Zoltan Herczeg
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1451] Ungreedy and min/max quantifier
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Zoltan Herczeg <hzmester@???> changed:

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





--- Comment #3 from Zoltan Herczeg <hzmester@???> 2014-03-10 12:32:52 ---
Very nice catch, and good bug report.

This is simply a typo in the code:

--- pcre_compile.c      (revision 1461)
+++ pcre_compile.c      (working copy)
@@ -3642,7 +3642,7 @@
         break;


         case OP_MINUPTO:
-        *code += OP_MINUPTO - OP_UPTO;
+        *code += OP_POSUPTO - OP_MINUPTO;
         break;
         }
       }



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