0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.1495: memory access error

Problem:    Memory access error.
Solution:   Use the correct size for clearing the popup mask.
This commit is contained in:
Bram Moolenaar 2019-06-08 16:55:15 +02:00
parent 6c009a3974
commit 1748c7f77e
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1495,
/**/
1494,
/**/