diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-26 21:39:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-26 21:39:13 +0100 |
commit | caf73dcfade0a435ea3f989285b43f07c40c9948 (patch) | |
tree | ae9c2d80671b11dd22ab7979e3969bdaee09ec6a /src/testdir/test_edit.vim | |
parent | cb80aa2d53e56d3aba3b3c439fb467f29a750c5e (diff) | |
download | vim-git-caf73dcfade0a435ea3f989285b43f07c40c9948.tar.gz |
patch 8.2.1910: reading past the end of the command linev8.2.1910
Problem: Reading past the end of the command line.
Solution: Check for NUL. (closes #7204)
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r-- | src/testdir/test_edit.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 6a84b1c8c..de3e3a161 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -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 |