vim-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)

2288afed42
This commit is contained in:
Jurica Bradaric 2016-02-02 20:13:31 +01:00
parent 3c0a082894
commit 5feff1c415
2 changed files with 5 additions and 5 deletions

View File

@ -7218,12 +7218,12 @@ char_u * file_pat_to_reg_pat(
#ifdef BACKSLASH_IN_FILENAME
&& no_bslash
#endif
)
) {
reg_pat[i++] = '?';
else if (*p == ',' || *p == '%' || *p == '#'
|| *p == ' ' || *p == '{' || *p == '}')
} else if (*p == ',' || *p == '%' || *p == '#'
|| ascii_isspace(*p) || *p == '{' || *p == '}') {
reg_pat[i++] = *p;
else if (*p == '\\' && p[1] == '\\' && p[2] == '{') {
} else if (*p == '\\' && p[1] == '\\' && p[2] == '{') {
reg_pat[i++] = '\\';
reg_pat[i++] = '{';
p += 2;

View File

@ -471,7 +471,7 @@ static int included_patches[] = {
// 820,
// 819,
// 818,
// 817,
817,
816,
815,
814,