Revision: 345
http://www.exim.org/viewvc/pcre2?view=rev&revision=345
Author: zherczeg
Date: 2015-08-13 06:57:26 +0100 (Thu, 13 Aug 2015)
Log Message:
-----------
Add 1 to match limit to support 0 match limit.
Modified Paths:
--------------
code/trunk/src/pcre2_jit_compile.c
Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c 2015-08-11 13:20:37 UTC (rev 344)
+++ code/trunk/src/pcre2_jit_compile.c 2015-08-13 05:57:26 UTC (rev 345)
@@ -10563,6 +10563,7 @@
OP1(SLJIT_MOV_UI, TMP1, 0, SLJIT_MEM1(TMP1), SLJIT_OFFSETOF(jit_arguments, limit_match));
OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_MEM1(TMP2), SLJIT_OFFSETOF(struct sljit_stack, base));
OP1(SLJIT_MOV, STACK_LIMIT, 0, SLJIT_MEM1(TMP2), SLJIT_OFFSETOF(struct sljit_stack, limit));
+OP2(SLJIT_ADD, TMP1, 0, TMP1, 0, SLJIT_IMM, 1);
OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), LIMIT_MATCH, TMP1, 0);
if (common->fast_fail_start_ptr < common->fast_fail_end_ptr)