Patch 8.2.4269

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 31, 2022, 6:45:21 AM1/31/22
to vim...@googlegroups.com

Patch 8.2.4269
Problem: Coverity warns for using a NULL pointer.
Solution: Check for "name" to not be NULL.
Files: src/userfunc.c


*** ../vim-8.2.4268/src/userfunc.c 2022-01-30 19:37:46.738366658 +0000
--- src/userfunc.c 2022-01-31 11:43:17.726772724 +0000
***************
*** 4232,4238 ****
name = prefixed;
}
}
! else if (vim9script && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
{
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
goto ret_free;
--- 4232,4239 ----
name = prefixed;
}
}
! else if (vim9script && name != NULL
! && vim_strchr(name, AUTOLOAD_CHAR) != NULL)
{
emsg(_(e_cannot_use_name_with_hash_in_vim9_script_use_export_instead));
goto ret_free;
*** ../vim-8.2.4268/src/version.c 2022-01-31 11:38:49.982532692 +0000
--- src/version.c 2022-01-31 11:43:50.810299600 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4269,
/**/

--
Eye have a spelling checker, it came with my PC;
It plainly marks four my revue mistakes I cannot sea.
I've run this poem threw it, I'm sure your please to no,
It's letter perfect in it's weigh, my checker tolled me sew!

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