diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-14 10:18:08 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-15 01:27:30 -0400 |
commit | 5e38ff105c20bc3920e840046f6af651c99f186c (patch) | |
tree | 02a7c86e013d0c73e7f01c1c8f96d6a5c5aef228 /src/nvim/testdir | |
parent | 84569693e109f322ed77948ce74c19af5f04b527 (diff) | |
download | rneovim-5e38ff105c20bc3920e840046f6af651c99f186c.tar.gz rneovim-5e38ff105c20bc3920e840046f6af651c99f186c.tar.bz2 rneovim-5e38ff105c20bc3920e840046f6af651c99f186c.zip |
vim-patch:8.0.1218: writing to freed memory in autocmd
Problem: Writing to freed memory in autocmd.
Solution: Make a copy of the tag line. (Dominique Pelle, closes vim/vim#2245)
https://github.com/vim/vim/commit/8d84ff1a3c8cfe59399d3f675ec080066582fdb6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index e4ab3ccea8..10fea4dad3 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -248,6 +248,24 @@ func Test_augroup_warning() au! VimEnter endfunc +func Test_BufReadCmdHelp() + " This used to cause access to free memory + au BufReadCmd * e +h + help + + helpclose + au! BufReadCmd +endfunc + +func Test_BufReadCmdHelpJump() + " This used to cause access to free memory + au BufReadCmd * e +h{ + help + + helpclose + au! BufReadCmd +endfunc + func Test_augroup_deleted() " This caused a crash before E936 was introduced augroup x |