mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -4339,7 +4339,7 @@ syn_clear_keyword(int id, hashtab_T *ht)
|
||||
if (kp_prev == NULL)
|
||||
{
|
||||
if (kp_next == NULL)
|
||||
hash_remove(ht, hi);
|
||||
hash_remove(ht, hi, "syntax clear keyword");
|
||||
else
|
||||
hi->hi_key = KE2HIKEY(kp_next);
|
||||
}
|
||||
|
Reference in New Issue
Block a user