Patch 8.2.4413
Problem: Vim9: Coverity warns for using NULL pointer.
Solution: Give an internal error when funcref function can't be found.
Files: src/vim9execute.c
*** ../vim-8.2.4412/src/vim9execute.c 2022-02-17 19:44:04.271319375 +0000
--- src/vim9execute.c 2022-02-18 13:23:18.626269305 +0000
***************
*** 3553,3558 ****
--- 3553,3564 ----
{
ufunc = find_func(funcref->fr_func_name, FALSE);
}
+ if (ufunc == NULL)
+ {
+ SOURCING_LNUM = iptr->isn_lnum;
+ iemsg("ufunc unexpectedly NULL for FUNCREF");
+ goto theend;
+ }
if (fill_partial_and_closure(pt, ufunc, ectx) == FAIL)
goto theend;
tv = STACK_TV_BOT(0);
*** ../vim-8.2.4412/src/version.c 2022-02-18 11:28:25.449737371 +0000
--- src/version.c 2022-02-18 13:24:10.178141515 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4413,
/**/
--
hundred-and-one symptoms of being an internet addict:
66. You create a homepage with the impression to cure the afflicted...but
your hidden agenda is to receive more e-mail.
/// 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/20220218132535.345C61C0D2C%40moolenaar.net.