mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
3c0a082894
commit
5feff1c415
@ -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;
|
||||
|
@ -471,7 +471,7 @@ static int included_patches[] = {
|
||||
// 820,
|
||||
// 819,
|
||||
// 818,
|
||||
// 817,
|
||||
817,
|
||||
816,
|
||||
815,
|
||||
814,
|
||||
|
Loading…
Reference in New Issue
Block a user