comparison src/testdir/test_autocmd.vim @ 18283:0cb608fc9c60 v8.1.2136

patch 8.1.2136: using freed memory with autocmd from fuzzer Commit: https://github.com/vim/vim/commit/ec66c41d84e574baf8009dbc0bd088d2bc5b2421 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 11 21:19:13 2019 +0200 patch 8.1.2136: using freed memory with autocmd from fuzzer Problem: using freed memory with autocmd from fuzzer. (Dhiraj Mishra, Dominique Pelle) Solution: Avoid using "wp" after autocommands. (closes #5041)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Oct 2019 21:30:04 +0200
parents 7d90fa3e5f8d
children 26a04a556982
comparison
equal deleted inserted replaced
18282:e0cbdb1aeca0 18283:0cb608fc9c60
2286 2286
2287 " clean up 2287 " clean up
2288 call StopVimInTerminal(buf) 2288 call StopVimInTerminal(buf)
2289 call delete(filename) 2289 call delete(filename)
2290 endfunc 2290 endfunc
2291
2292 func Test_autocmd_was_using_freed_memory()
2293 pedit xx
2294 n x
2295 au WinEnter * quit
2296 split
2297 au! WinEnter
2298 endfunc