# HG changeset patch # User April Chin # Date 1332449741 25200 # Node ID 6df1d115f82e9a3aae1abcff368e0bde351c5d42 # Parent ac51639ccac13806570aa49e0c2f8ae6f46fa45d 7155807 pcre v8.21 has a bug in fixed-length calculation for lookbehinds diff -r ac51639ccac1 -r 6df1d115f82e 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 */ +