Skip to content

Commit 2795e21

Browse files
committed
patch 7.4.1054
Problem: Illegal memory access. Solution: Check for missing pattern. (Dominique Pelle)
1 parent da59dd5 commit 2795e21

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/syntax.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5833,6 +5833,11 @@ syn_cmd_sync(eap, syncing)
58335833
}
58345834
else if (STRCMP(key, "LINECONT") == 0)
58355835
{
5836+
if (*next_arg == NUL) /* missing pattern */
5837+
{
5838+
illegal = TRUE;
5839+
break;
5840+
}
58365841
if (curwin->w_s->b_syn_linecont_pat != NULL)
58375842
{
58385843
EMSG(_("E403: syntax sync: line continuations pattern specified twice"));

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1054,
744746
/**/
745747
1053,
746748
/**/

0 commit comments

Comments
 (0)