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:
@@ -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"));
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user