diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-12-19 19:43:50 +0000 |
---|---|---|
committer | VVKot <volodymyr.kot.ua@gmail.com> | 2021-12-19 19:48:57 +0000 |
commit | bdfca2028b69e054eaee2b97e6bbfc955a29e76a (patch) | |
tree | 72d374d32e051df3a83071ca091a9ffc4ad26507 | |
parent | abdf3a8128b78fb98ee944bc5d3086c680d779ed (diff) | |
download | rneovim-bdfca2028b69e054eaee2b97e6bbfc955a29e76a.tar.gz rneovim-bdfca2028b69e054eaee2b97e6bbfc955a29e76a.tar.bz2 rneovim-bdfca2028b69e054eaee2b97e6bbfc955a29e76a.zip |
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
-rw-r--r-- | src/nvim/testdir/test_messages.vim | 8 |
1 files changed, 8 insertions, 0 deletions
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 + |