# HG changeset patch # User Bram Moolenaar # Date 1560006009 -7200 # Node ID f824831e2805a94d3ac1700caabb618ae8d05d6e # Parent 1a90a9eebf6ef8008264807c2bc1f10188203ba0 patch 8.1.1495: memory access error commit https://github.com/vim/vim/commit/1748c7f77ea864c669b7e5cfb2be0c34ce45e36e Author: Bram Moolenaar Date: Sat Jun 8 16:55:15 2019 +0200 patch 8.1.1495: memory access error Problem: Memory access error. Solution: Use the correct size for clearing the popup mask. diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1495, +/**/ 1494, /**/ 1493,