mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -5654,7 +5654,7 @@ get_syn_pattern(arg, ci)
|
|||||||
char_u *cpo_save;
|
char_u *cpo_save;
|
||||||
|
|
||||||
/* need at least three chars */
|
/* 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;
|
return NULL;
|
||||||
|
|
||||||
end = skip_regexp(arg + 1, *arg, TRUE, NULL);
|
end = skip_regexp(arg + 1, *arg, TRUE, NULL);
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
814,
|
||||||
/**/
|
/**/
|
||||||
813,
|
813,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user