]> granicus.if.org Git - vim/commitdiff
patch 8.2.3386: using uninitialized memory v8.2.3386
authorDominique Pelle <dominique.pelle@gmail.com>
Sun, 29 Aug 2021 20:12:56 +0000 (22:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 29 Aug 2021 20:12:56 +0000 (22:12 +0200)
Problem:    Using uninitialized memory.
Solution:   Initialize the rm_ic field. (Dominique PellĂ©, closes #8800)

src/indent.c
src/version.c

index 99951c81bf78727abc4fc128d7981dec3f7dd68b..f4c398219a40aa7f653a5e2da5e90d13c5c64072 100644 (file)
@@ -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)
index 5f427a8774be52f091c1471f162ffef68b4d31c1..1d657163b479664b0727d6463f7d5038c588b8bc 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3386,
 /**/
     3385,
 /**/