mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
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)
2de5371a75
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user