Skip to content

Commit 1748c7f

Browse files
committed
patch 8.1.1495: memory access error
Problem: Memory access error. Solution: Use the correct size for clearing the popup mask.
1 parent 6c009a3 commit 1748c7f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/screen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9345,7 +9345,7 @@ screenalloc(int doclear)
93459345
TabPageIdxs = new_TabPageIdxs;
93469346
#ifdef FEAT_TEXT_PROP
93479347
popup_mask = new_popup_mask;
9348-
vim_memset(popup_mask, 0, screen_Rows * screen_Columns * sizeof(short));
9348+
vim_memset(popup_mask, 0, Rows * Columns * sizeof(short));
93499349
popup_mask_refresh = TRUE;
93509350
#endif
93519351

src/version.c

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

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1495,
770772
/**/
771773
1494,
772774
/**/

0 commit comments

Comments
 (0)