0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4418: crash when using special multi-byte character

Problem:    Crash when using special multi-byte character.
Solution:   Don't use isalpha() for an arbitrary character.
This commit is contained in:
Bram Moolenaar
2022-02-19 11:20:12 +00:00
parent e89bfd212b
commit 5921aeb574
5 changed files with 18 additions and 2 deletions

View File

@@ -3626,7 +3626,7 @@ unix_expandpath(
else if (path_end >= path + wildoff
&& (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL
|| (!p_fic && (flags & EW_ICASE)
&& isalpha(PTR2CHAR(path_end)))))
&& vim_isalpha(PTR2CHAR(path_end)))))
e = p;
if (has_mbyte)
{