commit 0eddf5ad2fc3a5d5dd4be09a75aed198337ce032
parent c2e47e7bec0394a2cc12c8f83e3e5950ad99d1b4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 15 Apr 2023 13:06:29 +0800
vim-patch:8.2.0101: crash when passing null object to ":echomsg"
Problem: Crash when passing null object to ":echomsg".
Solution: Check for NULL pointer. (Yasuhiro Matsumoto, closes vim/vim#5460)
https://github.com/vim/vim/commit/9db2afe46d3208775d1c3075bbee073a17f8fdc6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim
@@ -403,6 +403,16 @@ func Test_ask_yesno()
call StopVimInTerminal(buf)
endfunc
+func Test_null()
+ echom test_null_list()
+ echom test_null_dict()
+ echom test_null_blob()
+ echom test_null_job()
+ echom test_null_string()
+ echom test_null_channel()
+ echom test_null_partial()
+endfunc
+
func Test_mapping_at_hit_return_prompt()
nnoremap <C-B> :echo "hit ctrl-b"<CR>
call feedkeys(":ls\<CR>", "xt")