commit | ef2c325f5e3c437b722bb96bf369ba2a5c541163 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Nov 25 16:31:51 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Nov 25 16:31:51 2022 +0000 |
tree | dc85f0dc98dce1937b459d8d3882473f25db03c3 | |
parent | c1cf4c91072f91b6b8dd636627a4ddf6f4b21f16 [diff] [blame] |
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/vim9execute.c b/src/vim9execute.c index cb52438..217147a 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c
@@ -2366,7 +2366,7 @@ NULL, FALSE)) status = FAIL; else - dictitem_remove(d, di); + dictitem_remove(d, di, "unlet"); } } }