mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -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);
|
vim_free(p);
|
||||||
}
|
}
|
||||||
buf->bh_first.b_next = NULL;
|
buf->bh_first.b_next = NULL;
|
||||||
|
buf->bh_curr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4236,
|
||||||
/**/
|
/**/
|
||||||
4235,
|
4235,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user