From: K.Kosako Date: Thu, 10 Oct 2019 07:50:05 +0000 (+0900) Subject: fix using invalid node to concatinate string X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07e211d7ff55916e33f1e05479a56f166c5032a6;p=onig fix using invalid node to concatinate string --- diff --git a/src/regparse.c b/src/regparse.c index 9954bf9..7002854 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -7856,7 +7856,7 @@ i_apply_case_fold(OnigCodePoint from, OnigCodePoint to[], int to_len, void* arg) ns[n++] = csnode; } else { - r = onig_node_str_cat(csnode, buf, buf + len); + r = onig_node_str_cat(ns[n-1], buf, buf + len); if (r < 0) goto err_free_ns; } }