7155807 pcre v8.21 has a bug in fixed-length calculation for lookbehinds
authorApril Chin <april.chin@oracle.com>
Thu, 22 Mar 2012 13:55:41 -0700
changeset 744 6df1d115f82e
parent 743 ac51639ccac1
child 745 09fd85317532
7155807 pcre v8.21 has a bug in fixed-length calculation for lookbehinds
components/pcre/patches/pcre_compile.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/patches/pcre_compile.patch	Thu Mar 22 13:55:41 2012 -0700
@@ -0,0 +1,13 @@
+diff -ru pcre-8.21.orig//pcre_compile.c pcre-8.21/pcre_compile.c
+--- pcre-8.21.orig//pcre_compile.c	Wed Dec  7 08:45:36 2011
++++ pcre-8.21/pcre_compile.c	Mon Mar 19 15:11:42 2012
+@@ -1655,7 +1655,8 @@
+     case OP_ASSERTBACK:
+     case OP_ASSERTBACK_NOT:
+     do cc += GET(cc, 1); while (*cc == OP_ALT);
+-    /* Fall through */
++    cc += _pcre_OP_lengths[*cc];
++    break;
+ 
+     /* Skip over things that don't match chars */
+