[Pcre-svn] [345] code/trunk/src/pcre2_jit_compile.c: Add 1 t…

トップ ページ
このメッセージを削除
著者: Subversion repository
日付:  
To: pcre-svn
題目: [Pcre-svn] [345] code/trunk/src/pcre2_jit_compile.c: Add 1 to match limit to support 0 match limit.
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)