mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.799
Problem: Accessing memory before an allocated block. Solution: Check for not going before the start of a pattern. (Dominique Pelle)
This commit is contained in:
@@ -8514,7 +8514,7 @@ do_autocmd_event(event, pat, nested, cmd, forceit, group)
|
||||
*/
|
||||
brace_level = 0;
|
||||
for (endpat = pat; *endpat && (*endpat != ',' || brace_level
|
||||
|| endpat[-1] == '\\'); ++endpat)
|
||||
|| (endpat > pat && endpat[-1] == '\\')); ++endpat)
|
||||
{
|
||||
if (*endpat == '{')
|
||||
brace_level++;
|
||||
|
Reference in New Issue
Block a user