forked from aniani/vim
patch 7.4.814
Problem: Illegal memory access with "sy match a fold". Solution: Check for empty string. (Dominique Pelle)
This commit is contained in:
parent
dbd24b5967
commit
382197865c
@ -5654,7 +5654,7 @@ get_syn_pattern(arg, ci)
|
||||
char_u *cpo_save;
|
||||
|
||||
/* need at least three chars */
|
||||
if (arg == NULL || arg[1] == NUL || arg[2] == NUL)
|
||||
if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL)
|
||||
return NULL;
|
||||
|
||||
end = skip_regexp(arg + 1, *arg, TRUE, NULL);
|
||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
814,
|
||||
/**/
|
||||
813,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user