# HG changeset patch # User Christian Brabandt # Date 1452028504 -3600 # Node ID 013f285f31a64b63725b6cf29059878051b0f8ae # Parent 094dd804f86fc57d091fa030cfcf1782e4ef9c48 commit https://github.com/vim/vim/commit/2795e21eaafaeaf95a91667fd411023280d0f902 Author: Bram Moolenaar Date: Tue Jan 5 22:04:49 2016 +0100 patch 7.4.1054 Problem: Illegal memory access. Solution: Check for missing pattern. (Dominique Pelle) diff --git a/src/syntax.c b/src/syntax.c --- a/src/syntax.c +++ b/src/syntax.c @@ -5833,6 +5833,11 @@ syn_cmd_sync(eap, syncing) } else if (STRCMP(key, "LINECONT") == 0) { + if (*next_arg == NUL) /* missing pattern */ + { + illegal = TRUE; + break; + } if (curwin->w_s->b_syn_linecont_pat != NULL) { EMSG(_("E403: syntax sync: line continuations pattern specified twice")); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1054, +/**/ 1053, /**/ 1052,