0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1054

Problem:    Illegal memory access.
Solution:   Check for missing pattern. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2016-01-05 22:04:49 +01:00
parent da59dd5da6
commit 2795e21eaa
2 changed files with 7 additions and 0 deletions

View File

@@ -5833,6 +5833,11 @@ syn_cmd_sync(eap, syncing)
} }
else if (STRCMP(key, "LINECONT") == 0) else if (STRCMP(key, "LINECONT") == 0)
{ {
if (*next_arg == NUL) /* missing pattern */
{
illegal = TRUE;
break;
}
if (curwin->w_s->b_syn_linecont_pat != NULL) if (curwin->w_s->b_syn_linecont_pat != NULL)
{ {
EMSG(_("E403: syntax sync: line continuations pattern specified twice")); EMSG(_("E403: syntax sync: line continuations pattern specified twice"));

View File

@@ -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 */
/**/
1054,
/**/ /**/
1053, 1053,
/**/ /**/