]> granicus.if.org Git - vim/commitdiff
patch 7.4.1054 v7.4.1054
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Jan 2016 21:04:49 +0000 (22:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Jan 2016 21:04:49 +0000 (22:04 +0100)
Problem:    Illegal memory access.
Solution:   Check for missing pattern. (Dominique Pelle)

src/syntax.c
src/version.c

index 937fbf1860e246da6ec045dc63ea2edd4029ed4a..badb2264281bfd6890e5c1205ebdb5c9a427ad6c 100644 (file)
@@ -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"));
index 6cb4c8dbe6c2f30e0f1385666693472a4556ef7b..23f9ed01687affe091fcaf4e78d7883109a16ced 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1054,
 /**/
     1053,
 /**/