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 -- [email protected] -- 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 ///
--
--
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/202102031831.113IVxPp1838782%40masaka.moolenaar.net.