forked from aniani/vim
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:
parent
901e58c243
commit
8fee878fe2
@ -10210,7 +10210,7 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
||||
else
|
||||
reg_pat[i++] = '^';
|
||||
endp = pat_end - 1;
|
||||
if (*endp == '*')
|
||||
if (endp >= pat && *endp == '*')
|
||||
{
|
||||
while (endp - pat > 0 && *endp == '*')
|
||||
endp--;
|
||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
820,
|
||||
/**/
|
||||
819,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user