diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-03 09:12:44 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-09-03 09:14:30 +0800 |
commit | b55010a539c37efcce10b08ee38df9dd4b4d9fb7 (patch) | |
tree | aad4b845c6fe6634b0e07c0929b0bd443075b195 /test | |
parent | 272c4fba8386ccc17706647c6b28fa70f43e1e66 (diff) | |
download | rneovim-b55010a539c37efcce10b08ee38df9dd4b4d9fb7.tar.gz rneovim-b55010a539c37efcce10b08ee38df9dd4b4d9fb7.tar.bz2 rneovim-b55010a539c37efcce10b08ee38df9dd4b4d9fb7.zip |
vim-patch:9.0.1846: [security] crash in fullcommand
Problem: crash in fullcommand
Solution: Check for typeval correctly
https://github.com/vim/vim/commit/4c6fe2e2ea62469642ed1d80b16d39e616b25cf5
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_functions.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 37541c4af3..eff4e36f34 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -3273,4 +3273,9 @@ func Test_string_reverse() let &encoding = save_enc endfunc +func Test_fullcommand() + " this used to crash vim + call assert_equal('', fullcommand(10)) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |