From 693f81d9b37934fdb3a0b1de6d06cacbecaffb63 Mon Sep 17 00:00:00 2001 From: zherczeg Date: Fri, 18 Jan 2013 08:20:44 +0000 Subject: [PATCH] Fix forward search in JIT when link size is 3 or greater. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1239 2f5784b3-3f2a-0410-8824-cb99058d5e15 Petr Pisar: Ported to 8.32. diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c index cc9f097..3b83340 100644 --- a/pcre_jit_compile.c +++ b/pcre_jit_compile.c @@ -2573,7 +2573,7 @@ DEFINE_COMPILER; struct sljit_label *start; struct sljit_jump *quit; pcre_uint32 chars[MAX_N_CHARS * 2]; -pcre_uchar *cc = common->start + 1 + IMM2_SIZE; +pcre_uchar *cc = common->start + 1 + LINK_SIZE; int location = 0; pcre_int32 len, c, bit, caseless; int must_stop; diff --git a/testdata/testinput12 b/testdata/testinput12 index 7deba3c..92c9603 100644 --- a/testdata/testinput12 +++ b/testdata/testinput12 @@ -86,4 +86,7 @@ and a couple of things that are different with JIT. --/ /.?(*THEN)/S!+I +/^12345678abcd/mS++ + 12345678abcd + /-- End of testinput12 --/ diff --git a/testdata/testoutput12 b/testdata/testoutput12 index 559f48d..f3c0230 100644 --- a/testdata/testoutput12 +++ b/testdata/testoutput12 @@ -178,4 +178,8 @@ Subject length lower bound = -1 No set of starting bytes JIT study was not successful +/^12345678abcd/mS++ + 12345678abcd + 0: 12345678abcd (JIT) + /-- End of testinput12 --/ -- 1.8.1