Skip to content

Commit

Permalink
patch 8.2.3386: using uninitialized memory
Browse files Browse the repository at this point in the history
Problem:    Using uninitialized memory.
Solution:   Initialize the rm_ic field. (Dominique Pellé, closes #8800)
  • Loading branch information
dpelle authored and brammool committed Aug 29, 2021
1 parent 89a9c15 commit a918712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/indent.c
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3386,
/**/
3385,
/**/
Expand Down

0 comments on commit a918712

Please sign in to comment.