commit | 166788c657f4b1090a31ea37a023b1f2c78790c8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jan 27 21:56:40 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jan 27 21:56:40 2022 +0000 |
tree | 4260f1fd9899a8047d6194e5828648273153c777 | |
parent | 37cf413e3e768b76c975e4a7081472d75d649c72 [diff] [blame] |
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 6602eea..cb8a354 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -110,6 +110,7 @@ vim_free(p); } buf->bh_first.b_next = NULL; + buf->bh_curr = NULL; } /*