0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 8.2.1910: reading past the end of the command line

Problem:    Reading past the end of the command line.
Solution:   Check for NUL. (closes #7204)
This commit is contained in:
Bram Moolenaar
2020-10-26 21:39:13 +01:00
parent cb80aa2d53
commit caf73dcfad
3 changed files with 12 additions and 2 deletions

View File

@@ -1832,4 +1832,11 @@ func Test_edit_browse()
bwipe!
endfunc
func Test_read_invalid()
set encoding=latin1
" This was not properly checking for going past the end.
call assert_fails('r`=', 'E484')
set encoding=utf-8
endfunc
" vim: shiftwidth=2 sts=2 expandtab