]> granicus.if.org Git - onig/commitdiff
fix missing INC_OP in OP_REPEAT_INC process
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 30 Jan 2019 05:05:33 +0000 (14:05 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:28:18 +0000 (14:28 +0900)
src/regexec.c

index 622c44c2b671971dd6182273b58cc8198d93f27f..1776d562710a5172f8a127b5bb95b22f907c31a6 100644 (file)
@@ -3780,6 +3780,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
         INC_OP;
       }
       else if (stkp->u.repeat.count >= reg->repeat_range[mem].lower) {
+        INC_OP;
         STACK_PUSH_ALT(p, s, sprev);
         p = STACK_AT(si)->u.repeat.pcode; /* Don't use stkp after PUSH. */
       }