From a91871262670f9d3a4e5d1c5c6dbc02f85625f7d Mon Sep 17 00:00:00 2001 From: Dominique Pelle Date: Sun, 29 Aug 2021 22:12:56 +0200 Subject: [PATCH] patch 8.2.3386: using uninitialized memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique PellĂ©, closes #8800) --- src/indent.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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, /**/