summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-27 21:56:40 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-27 21:56:40 +0000
commit166788c657f4b1090a31ea37a023b1f2c78790c8 (patch)
tree4260f1fd9899a8047d6194e5828648273153c777 /src/getchar.c
parent37cf413e3e768b76c975e4a7081472d75d649c72 (diff)
patch 8.2.4236: accessing freed memoryv8.2.4236
Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 6602eeac53..cb8a354489 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;
}
/*