0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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:
Bram Moolenaar
2015-07-28 13:33:45 +02:00
parent 31b259bf95
commit 6b9be1b6f2
2 changed files with 3 additions and 1 deletions

View File

@@ -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++;

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
799,
/**/
798,
/**/