mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.814
Problem: Illegal memory access with "sy match a fold". Solution: Check for empty string. (Dominique Pelle)
This commit is contained in:
@@ -5654,7 +5654,7 @@ get_syn_pattern(arg, ci)
|
||||
char_u *cpo_save;
|
||||
|
||||
/* need at least three chars */
|
||||
if (arg == NULL || arg[1] == NUL || arg[2] == NUL)
|
||||
if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL)
|
||||
return NULL;
|
||||
|
||||
end = skip_regexp(arg + 1, *arg, TRUE, NULL);
|
||||
|
Reference in New Issue
Block a user