]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0413: smoothscroll may cause infinite loop v9.1.0413
authorChristian Brabandt <cb@256bit.org>
Wed, 15 May 2024 19:35:36 +0000 (21:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 15 May 2024 19:35:36 +0000 (21:35 +0200)
commiteff20eb35d2dba413c6d115291dd9ddea705e802
treed3d42ccb48d254a6261ec6c40c7920ef6953dea7
parentfed01960d2b0280339bba29183b1c3859366e805
patch 9.1.0413: smoothscroll may cause infinite loop

Problem:  smoothscroll may cause infinite loop, with
          very narrow windows
          (Jaehwang Jung, after v9.1.0280)
Solution: Check for width1 being negative, verify
          that win_linetabsize does not overflow

fixes: #14750
closes: #14772

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/charset.c
src/move.c
src/testdir/test_normal.vim
src/version.c