commit 68c1b1c45a504341f7cf01f0bce0d1ed16631cfc
parent 0a8e66898d73ee90a9c52d0944141f498804c99d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 1 Feb 2024 09:26:19 +0800
vim-patch:8.2.0117: crash when using gettabwinvar() with invalid arguments (#27280)
Problem: Crash when using gettabwinvar() with invalid arguments. (Yilin
Yang)
Solution: Use "curtab" if "tp" is NULL. (closes vim/vim#5475)
https://github.com/vim/vim/commit/ee93b737aaa7bf65edc7281f429dd89fcf657a6f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/test/old/testdir/test_getvar.vim b/test/old/testdir/test_getvar.vim
@@ -83,6 +83,7 @@ func Test_var()
unlet def_dict
+ call assert_equal("", gettabwinvar(9, 2020, ''))
call assert_equal('', gettabwinvar(2, 3, '&nux'))
call assert_equal(1, gettabwinvar(2, 3, '&nux', 1))
tabonly