From: Dominique Pelle Date: Sun, 29 Aug 2021 20:12:56 +0000 (+0200) Subject: patch 8.2.3386: using uninitialized memory X-Git-Tag: v8.2.3386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a91871262670f9d3a4e5d1c5c6dbc02f85625f7d;p=vim patch 8.2.3386: using uninitialized memory Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique PellĂ©, closes #8800) --- diff --git a/src/indent.c b/src/indent.c index 99951c81b..f4c398219 100644 --- a/src/indent.c +++ b/src/indent.c @@ -953,6 +953,7 @@ get_breakindent_win( RE_MAGIC + RE_STRING + RE_AUTO + RE_STRICT); if (regmatch.regprog != NULL) { + regmatch.rm_ic = FALSE; if (vim_regexec(®match, line, 0)) { if (wp->w_briopt_list > 0) diff --git a/src/version.c b/src/version.c index 5f427a877..1d657163b 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3386, /**/ 3385, /**/