Patch 8.2.2456
Problem: Coverity warning for strcpy() into fixed size array.
Solution: Add a type cast to hopefully silence the bogus warning.
Files: src/userfunc.c
*** ../vim-8.2.2455/src/userfunc.c 2021-01-31 22:18:21.977811108 +0100
--- src/userfunc.c 2021-02-03 19:30:10.383515194 +0100
***************
*** 403,409 ****
static void
set_ufunc_name(ufunc_T *fp, char_u *name)
{
! STRCPY(fp->uf_name, name);
if (name[0] == K_SPECIAL)
{
--- 403,411 ----
static void
set_ufunc_name(ufunc_T *fp, char_u *name)
{
! // Add a type cast to avoid a warning for an overflow, the uf_name[] array
! // actually extends beyond the struct.
! STRCPY((void *)fp->uf_name, name);
if (name[0] == K_SPECIAL)
{
*** ../vim-8.2.2455/src/version.c 2021-02-03 17:41:19.928245836 +0100
--- src/version.c 2021-02-03 19:31:04.111343260 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2456,
/**/
--
"My particular problem is with registry entries, which seem to just
accumulate like plastic coffee cups..." -- Paul Moore
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///