neovim/test/old/testdir/crash/bt_quickfix_poc
zeertzjq a589156b4d vim-patch:9.0.1857: [security] heap-use-after-free in is_qf_win()
Problem:  heap-use-after-free in is_qf_win()
Solution: Check buffer is valid before accessing it

fc68299d43

Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-11-17 09:54:03 +08:00

9 lines
245 B
Plaintext

comman!-narg=* Xexpr <mods>lex<args>
auto BufReadPre * exe"sn" ..expand("<abuf>")
fu Xautocmd_changelist()
cal writefile(['Xtestfile2:4:4'],'Xerr')
sil! edi Xerr
Xexpr 'Xtestfile:4:4'
endf
call Xautocmd_changelist()
call Xautocmd_changelist()