From: K.Kosako Date: Tue, 6 Mar 2018 05:02:02 +0000 (+0900) Subject: fix: invalid loop counter in setup_ext_callout_list_values() X-Git-Tag: v6.8.0~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f1945b04fe5066159a347acce60455f2e14f877;p=onig fix: invalid loop counter in setup_ext_callout_list_values() --- diff --git a/src/regparse.c b/src/regparse.c index 14978fd..24dc516 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -1707,7 +1707,7 @@ setup_ext_callout_list_values(regex_t* reg) (st_data_t )ext); } - for (i = 0; i < ext->callout_num; i++) { + for (i = 1; i <= ext->callout_num; i++) { CalloutListEntry* e = ext->callout_list + i; if (e->of == ONIG_CALLOUT_OF_NAME) { for (j = 0; j < e->u.arg.num; j++) {