mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.817
Problem: Invalid memory access in file_pat_to_reg_pat(). Solution: Use vim_isspace() instead of checking for a space only. (Dominique Pelle)
This commit is contained in:
@@ -10277,7 +10277,7 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
||||
reg_pat[i++] = '?';
|
||||
else
|
||||
if (*p == ',' || *p == '%' || *p == '#'
|
||||
|| *p == ' ' || *p == '{' || *p == '}')
|
||||
|| vim_isspace(*p) || *p == '{' || *p == '}')
|
||||
reg_pat[i++] = *p;
|
||||
else if (*p == '\\' && p[1] == '\\' && p[2] == '{')
|
||||
{
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
817,
|
||||
/**/
|
||||
816,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user