diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-25 16:31:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-25 16:31:51 +0000 |
commit | ef2c325f5e3c437b722bb96bf369ba2a5c541163 (patch) | |
tree | dc85f0dc98dce1937b459d8d3882473f25db03c3 /src/sign.c | |
parent | c1cf4c91072f91b6b8dd636627a4ddf6f4b21f16 (diff) | |
download | vim-git-ef2c325f5e3c437b722bb96bf369ba2a5c541163.tar.gz |
patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949
Problem: Crash when unletting a variable while listing variables.
Solution: Disallow changing a hashtable while going over the entries.
(closes #11435)
Diffstat (limited to 'src/sign.c')
-rw-r--r-- | src/sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sign.c b/src/sign.c index 1073e6529..2a360216f 100644 --- a/src/sign.c +++ b/src/sign.c @@ -126,7 +126,7 @@ sign_group_unref(char_u *groupname) if (group->sg_refcount == 0) { // All the signs in this group are removed - hash_remove(&sg_table, hi); + hash_remove(&sg_table, hi, "sign remove"); vim_free(group); } } |