forked from aniani/vim
patch 7.4.811
Problem: Invalid memory access when using "exe 'sc'". Solution: Avoid going over the end of the string. (Dominique Pelle)
This commit is contained in:
@@ -3129,8 +3129,8 @@ find_command(eap, full)
|
|||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
else if (p[0] == 's'
|
else if (p[0] == 's'
|
||||||
&& ((p[1] == 'c' && p[2] != 's' && p[2] != 'r'
|
&& ((p[1] == 'c' && (p[2] == NUL || (p[2] != 's' && p[2] != 'r'
|
||||||
&& p[3] != 'i' && p[4] != 'p')
|
&& (p[3] == NUL || (p[3] != 'i' && p[4] != 'p')))))
|
||||||
|| p[1] == 'g'
|
|| p[1] == 'g'
|
||||||
|| (p[1] == 'i' && p[2] != 'm' && p[2] != 'l' && p[2] != 'g')
|
|| (p[1] == 'i' && p[2] != 'm' && p[2] != 'l' && p[2] != 'g')
|
||||||
|| p[1] == 'I'
|
|| p[1] == 'I'
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
811,
|
||||||
/**/
|
/**/
|
||||||
810,
|
810,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user