Patch 8.2.4472

4 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 25, 2022, 4:36:28 PM2/25/22
to vim...@googlegroups.com

Patch 8.2.4472
Problem: Coverity warns for use of a freed function name.
Solution: Only check an autoload name when is prefixed.
Files: src/userfunc.c


*** ../vim-8.2.4471/src/userfunc.c 2022-02-23 22:11:58.778087741 +0000
--- src/userfunc.c 2022-02-25 21:28:37.600651542 +0000
***************
*** 4624,4630 ****
{
char_u *prefixed = may_prefix_autoload(name);

! if (prefixed != NULL)
{
v = find_var(prefixed, &ht, TRUE);
if (v != NULL)
--- 4624,4630 ----
{
char_u *prefixed = may_prefix_autoload(name);

! if (prefixed != NULL && prefixed != name)
{
v = find_var(prefixed, &ht, TRUE);
if (v != NULL)
*** ../vim-8.2.4471/src/version.c 2022-02-25 21:10:49.430029941 +0000
--- src/version.c 2022-02-25 21:30:12.068521536 +0000
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 4472,
/**/

--
hundred-and-one symptoms of being an internet addict:
105. When someone asks you for your address, you tell them your URL.

/// 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