comparison src/screen.c @ 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 03f3a9ca2770
children 9c4cf27deb87
comparison
equal deleted inserted replaced
16989:1a90a9eebf6e 16990:f824831e2805
9343 LineOffset = new_LineOffset; 9343 LineOffset = new_LineOffset;
9344 LineWraps = new_LineWraps; 9344 LineWraps = new_LineWraps;
9345 TabPageIdxs = new_TabPageIdxs; 9345 TabPageIdxs = new_TabPageIdxs;
9346 #ifdef FEAT_TEXT_PROP 9346 #ifdef FEAT_TEXT_PROP
9347 popup_mask = new_popup_mask; 9347 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));
9349 popup_mask_refresh = TRUE; 9349 popup_mask_refresh = TRUE;
9350 #endif 9350 #endif
9351 9351
9352 /* It's important that screen_Rows and screen_Columns reflect the actual 9352 /* It's important that screen_Rows and screen_Columns reflect the actual
9353 * size of ScreenLines[]. Set them before calling anything. */ 9353 * size of ScreenLines[]. Set them before calling anything. */