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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user