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