summaryrefslogtreecommitdiff
path: root/pcre_exec.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-04-28 08:54:42 +0000
committerzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-04-28 08:54:42 +0000
commitb0944e58cd54455e3661cdb8248425fb78266e6e (patch)
tree90789c82b1dc1b9e97d377208409df3e01867c1e /pcre_exec.c
parent94bbb126cebcb4560ca3e26ae69298bee2fa8cd1 (diff)
downloadpcre-b0944e58cd54455e3661cdb8248425fb78266e6e.tar.gz
Improved support for match_limit in JIT.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1316 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_exec.c')
-rw-r--r--pcre_exec.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/pcre_exec.c b/pcre_exec.c
index cc15ca3..30976a1 100644
--- a/pcre_exec.c
+++ b/pcre_exec.c
@@ -6511,30 +6511,6 @@ if (extra_data != NULL
&& extra_data->executable_jit != NULL
&& (options & ~PUBLIC_JIT_EXEC_OPTIONS) == 0)
{
- /* A facility for setting the match limit in the regex was added; this puts
- a value in the compiled block. (Similarly for recursion limit, but the JIT
- does not make use of that.) Because the regex is not passed to jit_exec, we
- fudge up an alternative extra block, because we must not modify the extra
- block that the user has passed. */
-
-#if defined COMPILE_PCRE8
- pcre_extra extra_data_copy;
-#elif defined COMPILE_PCRE16
- pcre16_extra extra_data_copy;
-#elif defined COMPILE_PCRE32
- pcre32_extra extra_data_copy;
-#endif
-
- if ((re->flags & PCRE_MLSET) != 0 &&
- ((extra_data->flags & PCRE_EXTRA_MATCH_LIMIT) == 0 ||
- re->limit_match < extra_data->match_limit))
- {
- extra_data_copy = *extra_data;
- extra_data_copy.match_limit = re->limit_match;
- extra_data_copy.flags |= PCRE_EXTRA_MATCH_LIMIT;
- extra_data = &extra_data_copy;
- }
-
rc = PRIV(jit_exec)(extra_data, (const pcre_uchar *)subject, length,
start_offset, options, offsets, offsetcount);