Commits

Bram Moolenaar  committed 918d7df

updated for version 7.3.809
Problem: The dosinst.c program has a buffer overflow. (Thomas Gwae)
Solution: Ignore $VIMRUNTIME if it is too long.

  • Participants
  • Parent commits c7d9e38
  • Tags v7-3-809

Comments (0)

Files changed (2)

File src/dosinst.c

 
     /* First get $VIMRUNTIME.  If it's set, remove the tail. */
     vim = getenv("VIMRUNTIME");
-    if (vim != NULL && *vim != 0)
+    if (vim != NULL && *vim != 0 && strlen(vim) < BUFSIZE)
     {
 	strcpy(buf, vim);
 	remove_tail(buf);

File src/version.c

 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    809,
+/**/
     808,
 /**/
     807,