mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 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 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5777,7 +5777,7 @@ bt_normal(buf_T *buf)
|
||||
bt_quickfix(buf_T *buf UNUSED)
|
||||
{
|
||||
#ifdef FEAT_QUICKFIX
|
||||
return buf != NULL && buf->b_p_bt[0] == 'q';
|
||||
return buf != NULL && buf_valid(buf) && buf->b_p_bt[0] == 'q';
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user