From: Bram Moolenaar Date: Tue, 28 Jul 2015 11:33:45 +0000 (+0200) Subject: patch 7.4.799 X-Git-Tag: v7.4.799 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b9be1b6f29884536d99f7347fb9faa08e642e61;p=vim patch 7.4.799 Problem: Accessing memory before an allocated block. Solution: Check for not going before the start of a pattern. (Dominique Pelle) --- diff --git a/src/fileio.c b/src/fileio.c index 17b73bf65..b1bcfb536 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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++; diff --git a/src/version.c b/src/version.c index c06287242..718ea3111 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 799, /**/ 798, /**/