1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar 2013-02-13 14:36:44 +01:00
parent 76d711c3b5
commit 181ace28ed
2 changed files with 3 additions and 1 deletions

View File

@ -375,7 +375,7 @@ get_vim_env(void)
/* 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);

View File

@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
809,
/**/
808,
/**/