0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.054

Problem:    Reading past end of the 'stl' string.
Solution:   Don't increment pointer when already at the NUL. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar 2013-11-02 04:39:38 +01:00
parent b69a714bb7
commit 1180822670
2 changed files with 4 additions and 1 deletions

View File

@ -4062,7 +4062,8 @@ build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar,
item[curitem].minwid = -syn_namen2id(t, (int)(s - t));
curitem++;
}
++s;
if (*s != NUL)
++s;
continue;
}

View File

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