diff options
| author | Gregory Anders <greg@gpanders.com> | 2021-08-25 19:57:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-25 21:57:18 -0400 |
| commit | 8d62f5fd58d421edb39b66fd8b350325120b3cd6 (patch) | |
| tree | 0bd845b910298f13868a9d8e4ffac7a6d143bb64 /src/nvim/testdir | |
| parent | 10d7d73b2dc6db081a8a1f405204d35cccb85196 (diff) | |
| download | rneovim-8d62f5fd58d421edb39b66fd8b350325120b3cd6.tar.gz rneovim-8d62f5fd58d421edb39b66fd8b350325120b3cd6.tar.bz2 rneovim-8d62f5fd58d421edb39b66fd8b350325120b3cd6.zip | |
vim-patch:8.2.3362: buffer overflow when completing long tag name (#15449)
Problem: Buffer overflow when completing long tag name.
Solution: Allocate the buffer dynamically. (Gregory Anders, closes vim/vim#8769)
https://github.com/vim/vim/commit/489d60996deb5e7c1a3b4633412d54632e6def42
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_tagjump.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tagjump.vim b/src/nvim/testdir/test_tagjump.vim index b6d9143bc9..0fa7f85f0d 100644 --- a/src/nvim/testdir/test_tagjump.vim +++ b/src/nvim/testdir/test_tagjump.vim @@ -548,6 +548,16 @@ func Test_tag_line_toolong() call assert_equal('Xsomewhere', expand('%')) call assert_equal(3, getcurpos()[1]) + " expansion on command line works with long lines when &wildoptions contains + " 'tagfile' + set wildoptions=tagfile + call writefile([ + \ 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa file /^pattern$/;" f' + \ ], 'Xtags') + call feedkeys(":tag \<Tab>", 'tx') + " Should not crash + call assert_true(v:true) + call delete('Xtags') call delete('Xsomewhere') set tags& |