From: K.Kosako Date: Wed, 3 Oct 2018 12:42:15 +0000 (+0900) Subject: fix invalid reference in set_sunday_quick_search_skip_table() X-Git-Tag: v6.9.1~18^2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36edf056b0e532e7764111fa2a4d1f355d98c31d;p=onig fix invalid reference in set_sunday_quick_search_skip_table() --- diff --git a/src/regcomp.c b/src/regcomp.c index 3dfd00c..8e83266 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -4676,8 +4676,8 @@ set_sunday_quick_search_skip_table(regex_t* reg, int case_expand, ONIGENC_CODE_TO_MBC(enc, items[k].code[0], buf); for (j = 0; j < clen; j++) { int z = len - j + (offset - 1); - if (skip[p[j]] > z) - skip[p[j]] = z; + if (skip[buf[j]] > z) + skip[buf[j]] = z; } } }