From 0eddf5ad2fc3a5d5dd4be09a75aed198337ce032 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Apr 2023 13:06:29 +0800 Subject: 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 --- test/old/testdir/test_messages.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim index bfdebdac79..1afab6d359 100644 --- 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 :echo "hit ctrl-b" call feedkeys(":ls\", "xt") -- cgit