commit | 2795e21eaafaeaf95a91667fd411023280d0f902 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 05 22:04:49 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 05 22:04:49 2016 +0100 |
tree | 84bc697eb1e165249a127e44dc734876302c6104 | |
parent | da59dd5da6440c3410866ed61ce169a2012ba5bd [diff] [blame] |
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 index 937fbf1..badb226 100644 --- a/src/syntax.c +++ b/src/syntax.c
@@ -5833,6 +5833,11 @@ } 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"));