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:
parent
76d711c3b5
commit
181ace28ed
@ -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);
|
||||
|
@ -725,6 +725,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
809,
|
||||
/**/
|
||||
808,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user