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:
@@ -10188,7 +10188,7 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
|||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
size++;
|
size++;
|
||||||
# ifdef FEAT_MBYTE
|
# ifdef FEAT_MBYTE
|
||||||
if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1)
|
if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1)
|
||||||
{
|
{
|
||||||
++p;
|
++p;
|
||||||
@@ -10277,7 +10277,7 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
|
|||||||
reg_pat[i++] = '?';
|
reg_pat[i++] = '?';
|
||||||
else
|
else
|
||||||
if (*p == ',' || *p == '%' || *p == '#'
|
if (*p == ',' || *p == '%' || *p == '#'
|
||||||
|| *p == ' ' || *p == '{' || *p == '}')
|
|| vim_isspace(*p) || *p == '{' || *p == '}')
|
||||||
reg_pat[i++] = *p;
|
reg_pat[i++] = *p;
|
||||||
else if (*p == '\\' && p[1] == '\\' && p[2] == '{')
|
else if (*p == '\\' && p[1] == '\\' && p[2] == '{')
|
||||||
{
|
{
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
817,
|
||||||
/**/
|
/**/
|
||||||
816,
|
816,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user