From 0d47febea36d0f58069236be9375e1113179ccd0 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Thu, 11 Jul 2019 13:00:47 +0900 Subject: [PATCH] add call of onig_set_retry_limit_in_match() in exec_deluxe() --- harnesses/deluxe-encode-harness.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/harnesses/deluxe-encode-harness.c b/harnesses/deluxe-encode-harness.c index fb50f04..771c077 100644 --- a/harnesses/deluxe-encode-harness.c +++ b/harnesses/deluxe-encode-harness.c @@ -99,6 +99,8 @@ exec_deluxe(OnigEncoding pattern_enc, OnigEncoding str_enc, unsigned char* end = (unsigned char* )astr_end; onig_initialize(&str_enc, 1); + onig_set_retry_limit_in_match(DEFAULT_LIMIT); + onig_set_parse_depth_limit(DEFAULT_LIMIT); ci.num_of_elements = 5; ci.pattern_enc = pattern_enc; -- 2.40.0