1
0
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:
Bram Moolenaar 2015-08-11 15:27:13 +02:00
parent dbd24b5967
commit 382197865c
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

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