Patch 8.2.4659
Problem:    Invalid memory access when using printable function name.
Solution:   Adjust copied name length.
Files:      src/userfunc.c


*** ../vim-8.2.4658/src/userfunc.c      2022-03-31 20:02:52.422045605 +0100
--- src/userfunc.c      2022-03-31 21:39:21.057274498 +0100
***************
*** 543,549 ****
      if (len + 3 > bufsize)
        return name;
  
!     mch_memmove(buf + 5, name + 3, len + 1);
      mch_memmove(buf, "<SNR>", 5);
      return buf;
  }
--- 543,549 ----
      if (len + 3 > bufsize)
        return name;
  
!     mch_memmove(buf + 5, name + 3, len - 2);  // Include trailing NUL
      mch_memmove(buf, "<SNR>", 5);
      return buf;
  }
*** ../vim-8.2.4658/src/version.c       2022-03-31 20:24:31.797761995 +0100
--- src/version.c       2022-03-31 21:40:17.625200986 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4659,
  /**/

-- 
If cars evolved at the same rate as computers have, they'd cost five euro, 
run for a year on a couple of liters of petrol, and explode once a day.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20220331204102.46D281C13F2%40moolenaar.net.

Raspunde prin e-mail lui