summaryrefslogtreecommitdiffstats
path: root/src/testdir/crash
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2023-09-03 21:43:46 +0200
committerChristian Brabandt <cb@256bit.org>2023-09-03 21:43:46 +0200
commit6e60cf444a8839ca1694319bf9a82e7b097e5c4d (patch)
tree0ae96b7f0834c9e82cd174dda7683eb209dd46e3 /src/testdir/crash
parentee9166eb3b41846661a39b662dc7ebe8b5e15139 (diff)
patch 9.0.1859: heap-use-after-free in bt_normal()v9.0.1859
Problem: heap-use-after-free in bt_normal() Solution: check that buffer is still valid Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/crash')
-rw-r--r--src/testdir/crash/bt_quickfix1_poc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/crash/bt_quickfix1_poc b/src/testdir/crash/bt_quickfix1_poc
new file mode 100644
index 0000000000..97993fde52
--- /dev/null
+++ b/src/testdir/crash/bt_quickfix1_poc
@@ -0,0 +1,5 @@
+au BufReadPre * exe 'sn' .. expand("<abuf>")
+call writefile([''],'X')
+sil! e X
+call writefile([''],'X')
+sil! e X