diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-04-16 19:21:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 19:21:06 +0800 |
| commit | 88c3d8900112b1798fa5084dd02de6a6fd06f365 (patch) | |
| tree | 2b782d03474e6e44ea68931dc7d62b5611d91f69 /test | |
| parent | 227f06b7dfe52f3cb15a26ba990237af5014e2b6 (diff) | |
| download | rneovim-88c3d8900112b1798fa5084dd02de6a6fd06f365.tar.gz rneovim-88c3d8900112b1798fa5084dd02de6a6fd06f365.tar.bz2 rneovim-88c3d8900112b1798fa5084dd02de6a6fd06f365.zip | |
vim-patch:9.0.1143: invalid memory access with bad 'statusline' value (#23133)
Problem: Invalid memory access with bad 'statusline' value.
Solution: Avoid going over the NUL at the end.
https://github.com/vim/vim/commit/7b17eb4b063a234376c1ec909ee293e42cff290c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/old/testdir/test_statusline.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_statusline.vim b/test/old/testdir/test_statusline.vim index 1e06ad1c67..4bbb46de0a 100644 --- a/test/old/testdir/test_statusline.vim +++ b/test/old/testdir/test_statusline.vim @@ -444,6 +444,13 @@ func Test_statusline() set splitbelow& endfunc +func Test_statusline_trailing_percent_zero() + " this was causing illegal memory access + set laststatus=2 stl=%!%0 + call assert_fails('redraw', 'E15: Invalid expression: "%0"') + set laststatus& stl& +endfunc + func Test_statusline_visual() func CallWordcount() call wordcount() |