updated for version 7.3.675
Problem: Using uninitialized memory with very long file name.
Solution: Put NUL after text when it is truncated. (ZyX)
diff --git a/src/buffer.c b/src/buffer.c
index 0a2ce8e..5998523 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3058,7 +3058,7 @@
*p++ = '"';
if (buf_spname(curbuf) != NULL)
- STRCPY(p, buf_spname(curbuf));
+ vim_strncpy(p, buf_spname(curbuf), IOSIZE - (p - buffer) - 1);
else
{
if (!fullname && curbuf->b_fname != NULL)
diff --git a/src/version.c b/src/version.c
index fff0079..1798f05 100644
--- a/src/version.c
+++ b/src/version.c
@@ -720,6 +720,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 675,
+/**/
674,
/**/
673,