0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1054

Problem:    Illegal memory access.
Solution:   Check for missing pattern. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2016-01-05 22:04:49 +01:00
parent da59dd5da6
commit 2795e21eaa
2 changed files with 7 additions and 0 deletions

View 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"));