From: Bram Moolenaar Date: Thu, 27 Jan 2022 21:56:40 +0000 (+0000) Subject: patch 8.2.4236: accessing freed memory X-Git-Tag: v8.2.4236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=166788c657f4b1090a31ea37a023b1f2c78790c8;p=vim patch 8.2.4236: accessing freed memory Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL. --- 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, /**/