]> granicus.if.org Git - vim/commitdiff
patch 8.1.1495: memory access error v8.1.1495
authorBram Moolenaar <Bram@vim.org>
Sat, 8 Jun 2019 14:55:15 +0000 (16:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 8 Jun 2019 14:55:15 +0000 (16:55 +0200)
Problem:    Memory access error.
Solution:   Use the correct size for clearing the popup mask.

src/screen.c
src/version.c

index fb108532779c08a029e885af18c69c61653c48b4..512560b8854fe3466f1765040fef9df8bb1ca301 100644 (file)
@@ -9345,7 +9345,7 @@ give_up:
     TabPageIdxs = new_TabPageIdxs;
 #ifdef FEAT_TEXT_PROP
     popup_mask = new_popup_mask;
-    vim_memset(popup_mask, 0, screen_Rows * screen_Columns * sizeof(short));
+    vim_memset(popup_mask, 0, Rows * Columns * sizeof(short));
     popup_mask_refresh = TRUE;
 #endif
 
index ed8fba056eb30aa45ab3d1aa72feeb6823cc5e1c..504a1631c065a6d97da4c25c948dd21e41885350 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1495,
 /**/
     1494,
 /**/