Skip to content

Commit a918712

Browse files
dpellebrammool
authored andcommitted
patch 8.2.3386: using uninitialized memory
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes #8800)
1 parent 89a9c15 commit a918712

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/indent.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ get_breakindent_win(
953953
RE_MAGIC + RE_STRING + RE_AUTO + RE_STRICT);
954954
if (regmatch.regprog != NULL)
955955
{
956+
regmatch.rm_ic = FALSE;
956957
if (vim_regexec(&regmatch, line, 0))
957958
{
958959
if (wp->w_briopt_list > 0)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3386,
758760
/**/
759761
3385,
760762
/**/

0 commit comments

Comments
 (0)