vim-patch:7.4.1054

Problem:    Illegal memory access.
Solution:   Check for missing pattern. (Dominique Pelle)

2795e21eaa
This commit is contained in:
Jurica Bradaric
2016-05-10 21:24:57 +02:00
parent 0bfc1f33a0
commit dd9dc7ae87
2 changed files with 5 additions and 1 deletions

View File

@@ -5004,6 +5004,10 @@ static void syn_cmd_sync(exarg_T *eap, int syncing)
curwin->w_s->b_syn_sync_maxlines = 0;
}
} 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"));
finished = TRUE;