diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-25 11:55:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-25 11:55:02 +0000 |
commit | 85b6747abc15a7a81086db31289cf1b8b17e6cb1 (patch) | |
tree | 5fbac72647079ea80b7a09895c9cd2ff4e62f0db /src/testdir/test_ex_mode.vim | |
parent | 76687d27173e64d739ea371751697c03ad0821ef (diff) |
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex modev8.2.4214
Problem: Illegal memory access with large 'tabstop' in Ex mode.
Solution: Allocate enough memory.
Diffstat (limited to 'src/testdir/test_ex_mode.vim')
-rw-r--r-- | src/testdir/test_ex_mode.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim index 7031115fcb..2642a16d25 100644 --- a/src/testdir/test_ex_mode.vim +++ b/src/testdir/test_ex_mode.vim @@ -241,4 +241,14 @@ func Test_ex_mode_count_overflow() call delete('Xexmodescript') endfunc +func Test_ex_mode_large_indent() + new + set ts=500 ai + call setline(1, "\t") + exe "normal gQi\<CR>." + set ts=8 noai + bwipe! +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |