diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-11 21:19:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-11 21:19:13 +0200 |
commit | ec66c41d84e574baf8009dbc0bd088d2bc5b2421 (patch) | |
tree | ef666f19b084bab73d530bcf7eb370780f33be21 /src/testdir | |
parent | 00eab7f128ecfef699fec30988e5b1cc72378617 (diff) |
patch 8.1.2136: using freed memory with autocmd from fuzzerv8.1.2136
Problem: using freed memory with autocmd from fuzzer. (Dhiraj Mishra,
Dominique Pelle)
Solution: Avoid using "wp" after autocommands. (closes #5041)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_autocmd.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index fe77bf5786..1e53fe4639 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -2288,3 +2288,11 @@ func Test_autocmd_CmdWinEnter() call StopVimInTerminal(buf) call delete(filename) endfunc + +func Test_autocmd_was_using_freed_memory() + pedit xx + n x + au WinEnter * quit + split + au! WinEnter +endfunc |