neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit e75ccc3b3ac7e827d9e7a5661fa34365b32f629f
parent 38cbca3eeadca86f1431ea7a97f498f6a9cd33c8
Author: Dundar Goc <gocdundar@gmail.com>
Date:   Tue, 17 May 2022 13:40:09 +0200

fix(PVS/V1028): prevent potential overflow

Diffstat:
Msrc/nvim/grid.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/grid.c b/src/nvim/grid.c @@ -63,7 +63,7 @@ void grid_clear_line(ScreenGrid *grid, size_t off, int width, bool valid) void grid_invalidate(ScreenGrid *grid) { - (void)memset(grid->attrs, -1, sizeof(sattr_T) * (size_t)(grid->Rows * grid->Columns)); + (void)memset(grid->attrs, -1, sizeof(sattr_T) * (size_t)grid->Rows * (size_t)grid->Columns); } bool grid_invalid_row(ScreenGrid *grid, int row)