mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.4236: accessing freed memory
Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
This commit is contained in:
@@ -110,6 +110,7 @@ free_buff(buffheader_T *buf)
|
||||
vim_free(p);
|
||||
}
|
||||
buf->bh_first.b_next = NULL;
|
||||
buf->bh_curr = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4236,
|
||||
/**/
|
||||
4235,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user