summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-27 21:56:40 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-27 21:56:40 +0000
commit166788c657f4b1090a31ea37a023b1f2c78790c8 (patch)
tree4260f1fd9899a8047d6194e5828648273153c777
parent37cf413e3e768b76c975e4a7081472d75d649c72 (diff)
downloadvim-git-166788c657f4b1090a31ea37a023b1f2c78790c8.tar.gz
patch 8.2.4236: accessing freed memoryv8.2.4236
Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
-rw-r--r--src/getchar.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 6602eeac5..cb8a35448 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -110,6 +110,7 @@ free_buff(buffheader_T *buf)
vim_free(p);
}
buf->bh_first.b_next = NULL;
+ buf->bh_curr = NULL;
}
/*
diff --git a/src/version.c b/src/version.c
index 49942b5e0..23b29daf3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4236,
+/**/
4235,
/**/
4234,