mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.820
Problem: Invalid memory access in file_pat_to_reg_pat. Solution: Avoid looking before the start of a string. (Dominique Pelle)
This commit is contained in:
@@ -10210,7 +10210,7 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
|||||||
else
|
else
|
||||||
reg_pat[i++] = '^';
|
reg_pat[i++] = '^';
|
||||||
endp = pat_end - 1;
|
endp = pat_end - 1;
|
||||||
if (*endp == '*')
|
if (endp >= pat && *endp == '*')
|
||||||
{
|
{
|
||||||
while (endp - pat > 0 && *endp == '*')
|
while (endp - pat > 0 && *endp == '*')
|
||||||
endp--;
|
endp--;
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
820,
|
||||||
/**/
|
/**/
|
||||||
819,
|
819,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user