Mercurial > vim
changeset 16990:f824831e2805 v8.1.1495
patch 8.1.1495: memory access error
commit https://github.com/vim/vim/commit/1748c7f77ea864c669b7e5cfb2be0c34ce45e36e
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jun 2019 17:00:09 +0200 |
parents | 1a90a9eebf6e |
children | 4058ba389909 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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