vim-patch:8.0.1446: acessing freed memory after window command in auto command

Problem:    Acessing freed memory after window command in auto command.
            (gy741)
Solution:   Adjust the pointer in the parent frame. (Christian Brabandt,
            closes vim/vim#2467)
6f361c9912
This commit is contained in:
Jan Edmund Lazo
2018-07-15 08:36:46 -04:00
parent ce5d755048
commit a8ff55d50e
2 changed files with 26 additions and 4 deletions

View File

@@ -455,4 +455,15 @@ func Test_window_contents()
call test_garbagecollect_now()
endfunc
func Test_access_freed_mem()
" This was accessing freed memory
au * 0 vs xxx
arg 0
argadd
all
all
au!
bwipe xxx
endfunc
" vim: shiftwidth=2 sts=2 expandtab