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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221226130859.1B64A1C0BAE%40moolenaar.net.