mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:8.2.4647: "source" can read past end of copied line
Problem: "source" can read past end of copied line.
Solution: Add a terminating NUL.
2bdad61267
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -638,4 +638,13 @@ func Test_source_buffer_vim9()
|
||||
%bw!
|
||||
endfunc
|
||||
|
||||
func Test_source_buffer_long_line()
|
||||
" This was reading past the end of the line.
|
||||
new
|
||||
norm300gr0
|
||||
so
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user