# HG changeset patch # User Bram Moolenaar # Date 1643320803 -3600 # Node ID 0b3bf3cbe42f50e533581efe39afe6a6b8223fb4 # Parent ff48162d4ad67d111851d504563c4ed8a9907836 patch 8.2.4236: accessing freed memory Commit: https://github.com/vim/vim/commit/166788c657f4b1090a31ea37a023b1f2c78790c8 Author: Bram Moolenaar 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. diff --git a/src/getchar.c b/src/getchar.c --- 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 --- 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,