changeset 25701:357a3bee56f5 v8.2.3386

patch 8.2.3386: using uninitialized memory Commit: https://github.com/vim/vim/commit/a91871262670f9d3a4e5d1c5c6dbc02f85625f7d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Aug 29 22:12:56 2021 +0200 patch 8.2.3386: using uninitialized memory Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pell?, closes https://github.com/vim/vim/issues/8800)
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Aug 2021 22:15:04 +0200
parents d4faa2c5211b
children cc125f725363
files src/indent.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(&regmatch, line, 0))
 	    {
 		if (wp->w_briopt_list > 0)
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3386,
+/**/
     3385,
 /**/
     3384,