summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-26 16:42:16 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-26 16:42:16 +0200
commit8d84ff1a3c8cfe59399d3f675ec080066582fdb6 (patch)
tree02286c1615353fbb090eef259ca01921aa6e84ff /src/testdir
parentd99388ba8535a6fecf7d0bf7b982832c0b816062 (diff)
downloadvim-8d84ff1a3c8cfe59399d3f675ec080066582fdb6.zip
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 #2245)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_autocmd.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index 6ca3b220e..aa7d15779 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -249,6 +249,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