Patch 8.2.4413

4 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 18, 2022, 8:25:41 AM2/18/22
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages