diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-28 20:47:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-28 20:47:49 +0000 |
commit | 652dee448618589de5528a9e9a36995803f5557a (patch) | |
tree | a659b1d0a7f5409943f2c626e2a87cde520c3733 /src/testdir/test_options.vim | |
parent | 14cbf77845624e4bfc28a65a5debb81864cba2cf (diff) | |
download | vim-git-652dee448618589de5528a9e9a36995803f5557a.tar.gz |
patch 8.2.4245: ":retab 0" may cause illegal memory accessv8.2.4245
Problem: ":retab 0" may cause illegal memory access.
Solution: Limit the value of 'tabstop' to 10000.
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 226589439..2af13d94f 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -368,6 +368,8 @@ func Test_set_errors() call assert_fails('set shiftwidth=-1', 'E487:') call assert_fails('set sidescroll=-1', 'E487:') call assert_fails('set tabstop=-1', 'E487:') + call assert_fails('set tabstop=10000', 'E474:') + call assert_fails('set tabstop=5500000000', 'E474:') call assert_fails('set textwidth=-1', 'E487:') call assert_fails('set timeoutlen=-1', 'E487:') call assert_fails('set updatecount=-1', 'E487:') |