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:
@@ -8514,7 +8514,7 @@ do_autocmd_event(event, pat, nested, cmd, forceit, group)
|
|||||||
*/
|
*/
|
||||||
brace_level = 0;
|
brace_level = 0;
|
||||||
for (endpat = pat; *endpat && (*endpat != ',' || brace_level
|
for (endpat = pat; *endpat && (*endpat != ',' || brace_level
|
||||||
|| endpat[-1] == '\\'); ++endpat)
|
|| (endpat > pat && endpat[-1] == '\\')); ++endpat)
|
||||||
{
|
{
|
||||||
if (*endpat == '{')
|
if (*endpat == '{')
|
||||||
brace_level++;
|
brace_level++;
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
799,
|
||||||
/**/
|
/**/
|
||||||
798,
|
798,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user