patch 9.0.0949: crash when unletting a variable while listing variables
Problem: Crash when unletting a variable while listing variables.
Solution: Disallow changing a hashtable while going over the entries.
(closes #11435)
diff --git a/src/sign.c b/src/sign.c
index 1073e65..2a36021 100644
--- a/src/sign.c
+++ b/src/sign.c
@@ -126,7 +126,7 @@
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);
}
}