From: Markus Koschany Date: Sun, 30 Oct 2022 20:51:31 +0100 Subject: CVE-2022-0685 Origin: https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 --- src/charset.c | 6 ++++++ src/proto/charset.pro | 2 +- src/testdir/test_autochdir.vim | 9 +++++++++ src/version.c | 2 ++ 4 files changed, 18 insertions(+), 1 deletion(-) --- a/src/charset.c +++ b/src/charset.c @@ -1673,6 +1673,12 @@ vim_isupper(int c) } int +vim_isalpha(int c) +{ + return vim_islower(c) || vim_isupper(c); +} + + int vim_toupper(int c) { if (c <= '@') --- a/src/proto/charset.pro +++ b/src/proto/charset.pro @@ -48,6 +48,7 @@ int vim_isxdigit(int c); int vim_isbdigit(int c); int vim_islower(int c); int vim_isupper(int c); +int vim_isalpha(int c); int vim_toupper(int c); int vim_tolower(int c); char_u *skiptowhite(char_u *p); @@ -60,5 +61,4 @@ int hexhex2nr(char_u *p); int rem_backslash(char_u *str); void backslash_halve(char_u *p); char_u *backslash_halve_save(char_u *p); -void ebcdic2ascii(char_u *buffer, int len); /* vim: set ft=c : */