diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-14 11:59:09 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-15 01:27:30 -0400 |
commit | 8e2a892e709df140d321b8058be041c0fe111ebc (patch) | |
tree | 90523a208295dc59f652d58d19bf71ec170864ef /src/nvim/testdir | |
parent | 1daf2cb0eaa21a88656332eec4a2dbf8b824c634 (diff) | |
download | rneovim-8e2a892e709df140d321b8058be041c0fe111ebc.tar.gz rneovim-8e2a892e709df140d321b8058be041c0fe111ebc.tar.bz2 rneovim-8e2a892e709df140d321b8058be041c0fe111ebc.zip |
vim-patch:8.0.1409: buffer overflow in :tags command
Problem: Buffer overflow in :tags command.
Solution: Use vim_snprintf(). (Dominique Pelle, closes vim/vim#2471, closes vim/vim#2475)
Add a test.
https://github.com/vim/vim/commit/132f75255ecea17ff621f71236568c5d8d8e0163
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_taglist.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_taglist.vim b/src/nvim/testdir/test_taglist.vim index 2d1557ebd9..3ad2025915 100644 --- a/src/nvim/testdir/test_taglist.vim +++ b/src/nvim/testdir/test_taglist.vim @@ -1,4 +1,4 @@ -" test 'taglist' function +" test 'taglist' function and :tags command func Test_taglist() call writefile([ @@ -56,3 +56,8 @@ func Test_taglist_ctags_etags() call delete('Xtags') endfunc + +func Test_tags_too_long() + call assert_fails('tag ' . repeat('x', 1020), 'E426') + tags +endfunc |