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