From bdfca2028b69e054eaee2b97e6bbfc955a29e76a Mon Sep 17 00:00:00 2001 From: VVKot Date: Sun, 19 Dec 2021 19:43:50 +0000 Subject: vim-patch:8.2.3850: illegal memory access when displaying a partial Problem: Illegal memory access when displaying a partial. Solution: Terminate the string with a NUL. (closes vim/vim#9371) https://github.com/vim/vim/commit/2de5371a755abd287dab6ff544924715a76d4abe --- src/nvim/testdir/test_messages.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim index 2140fe21ea..4ba9d28868 100644 --- a/src/nvim/testdir/test_messages.vim +++ b/src/nvim/testdir/test_messages.vim @@ -108,3 +108,11 @@ func Test_echospace() set ruler& showcmd& endfunc + +" this was missing a terminating NUL +func Test_echo_string_partial() + function CountSpaces() + endfunction + echomsg function('CountSpaces', [#{aaaaaaaaaaa: v:false, bbbbbbbbbbbb: '', ccccccccccc: ['ab', 'cd']}]) +endfunc + -- cgit