To: vim_dev@googlegroups.com Subject: Patch 9.0.1099 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1099 Problem: Trying to resize a hashtab may cause a problem. Solution: Do not try to resize a hashtab before adding an item. Files: src/hashtab.c *** ../vim-9.0.1098/src/hashtab.c 2022-12-25 21:32:01.461075485 +0000 --- src/hashtab.c 2022-12-26 13:06:22.513792468 +0000 *************** *** 249,255 **** hash_T hash) { // If resizing failed before and it fails again we can't add an item. ! if ((ht->ht_flags & HTFLAGS_ERROR) && hash_may_resize(ht, 0) == FAIL) return FAIL; ++ht->ht_used; --- 249,255 ---- hash_T hash) { // If resizing failed before and it fails again we can't add an item. ! if (ht->ht_flags & HTFLAGS_ERROR) return FAIL; ++ht->ht_used; *** ../vim-9.0.1098/src/version.c 2022-12-26 12:49:58.652390143 +0000 --- src/version.c 2022-12-26 13:07:40.113619323 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1099, /**/ -- TIM: To the north there lies a cave, the cave of Caerbannog, wherein, carved in mystic runes, upon the very living rock, the last words of Olfin Bedwere of Rheged make plain the last resting place of the most Holy Grail. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///