diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-28 09:33:37 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-28 19:03:39 +0800 |
commit | 175692325bfeea280b105951949e71a5a4b430d1 (patch) | |
tree | cdd012e8f50fe9fe0e17d8ffef56f4701b94ff8e /src | |
parent | 7114764ffbabe7024be6c9ed594423894d7aa95d (diff) | |
download | rneovim-175692325bfeea280b105951949e71a5a4b430d1.tar.gz rneovim-175692325bfeea280b105951949e71a5a4b430d1.tar.bz2 rneovim-175692325bfeea280b105951949e71a5a4b430d1.zip |
vim-patch:8.2.4236: accessing freed memory
Problem: Accessing freed memory.
Solution: Set the bh_curr pointer to NULL.
https://github.com/vim/vim/commit/166788c657f4b1090a31ea37a023b1f2c78790c8
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/getchar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index e3c338c500..55bcfa0e97 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -163,6 +163,7 @@ void free_buff(buffheader_T *buf) xfree(p); } buf->bh_first.b_next = NULL; + buf->bh_curr = NULL; } /// Return the contents of a buffer as a single string. |