mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
vim-patch:7.4.1054
Problem: Illegal memory access.
Solution: Check for missing pattern. (Dominique Pelle)
2795e21eaa
This commit is contained in:
@@ -5004,6 +5004,10 @@ static void syn_cmd_sync(exarg_T *eap, int syncing)
|
|||||||
curwin->w_s->b_syn_sync_maxlines = 0;
|
curwin->w_s->b_syn_sync_maxlines = 0;
|
||||||
}
|
}
|
||||||
} else if (STRCMP(key, "LINECONT") == 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) {
|
if (curwin->w_s->b_syn_linecont_pat != NULL) {
|
||||||
EMSG(_("E403: syntax sync: line continuations pattern specified twice"));
|
EMSG(_("E403: syntax sync: line continuations pattern specified twice"));
|
||||||
finished = TRUE;
|
finished = TRUE;
|
||||||
|
@@ -624,7 +624,7 @@ static int included_patches[] = {
|
|||||||
// 1057,
|
// 1057,
|
||||||
// 1056,
|
// 1056,
|
||||||
1055,
|
1055,
|
||||||
// 1054,
|
1054,
|
||||||
// 1053,
|
// 1053,
|
||||||
// 1052,
|
// 1052,
|
||||||
// 1051,
|
// 1051,
|
||||||
|
Reference in New Issue
Block a user