From bbb363f4bcfb56f8e60afff5f6f65cfe9e860252 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 17 Nov 2023 09:15:38 +0800 Subject: vim-patch:partial:9.0.1859: heap-use-after-free in bt_normal() Problem: heap-use-after-free in bt_normal() Solution: check that buffer is still valid https://github.com/vim/vim/commit/6e60cf444a8839ca1694319bf9a82e7b097e5c4d Test change only. Co-authored-by: Christian Brabandt --- test/old/testdir/crash/bt_quickfix1_poc | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/old/testdir/crash/bt_quickfix1_poc (limited to 'test/old/testdir/crash/bt_quickfix1_poc') diff --git a/test/old/testdir/crash/bt_quickfix1_poc b/test/old/testdir/crash/bt_quickfix1_poc new file mode 100644 index 0000000000..97993fde52 --- /dev/null +++ b/test/old/testdir/crash/bt_quickfix1_poc @@ -0,0 +1,5 @@ +au BufReadPre * exe 'sn' .. expand("") +call writefile([''],'X') +sil! e X +call writefile([''],'X') +sil! e X -- cgit