changeset 27416:0b3bf3cbe42f v8.2.4236

patch 8.2.4236: accessing freed memory Commit: https://github.com/vim/vim/commit/166788c657f4b1090a31ea37a023b1f2c78790c8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 27 21:56:40 2022 +0000 patch 8.2.4236: accessing freed memory Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Jan 2022 23:00:03 +0100
parents ff48162d4ad6
children 98239fdd09c5
files src/getchar.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 
 /*
--- 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,