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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user