From 166788c657f4b1090a31ea37a023b1f2c78790c8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Jan 2022 21:56:40 +0000 Subject: [PATCH] patch 8.2.4236: accessing freed memory Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL. --- src/getchar.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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 @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4236, /**/ 4235, /**/ -- 2.50.1