mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
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:
@@ -375,7 +375,7 @@ get_vim_env(void)
|
|||||||
|
|
||||||
/* First get $VIMRUNTIME. If it's set, remove the tail. */
|
/* First get $VIMRUNTIME. If it's set, remove the tail. */
|
||||||
vim = getenv("VIMRUNTIME");
|
vim = getenv("VIMRUNTIME");
|
||||||
if (vim != NULL && *vim != 0)
|
if (vim != NULL && *vim != 0 && strlen(vim) < BUFSIZE)
|
||||||
{
|
{
|
||||||
strcpy(buf, vim);
|
strcpy(buf, vim);
|
||||||
remove_tail(buf);
|
remove_tail(buf);
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
809,
|
||||||
/**/
|
/**/
|
||||||
808,
|
808,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user