summaryrefslogtreecommitdiffstats
path: root/debian/patches/CVE-2022-0685.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/CVE-2022-0685.patch')
-rw-r--r--debian/patches/CVE-2022-0685.patch12
1 files changed, 4 insertions, 8 deletions
diff --git a/debian/patches/CVE-2022-0685.patch b/debian/patches/CVE-2022-0685.patch
index 14e5210..054765b 100644
--- a/debian/patches/CVE-2022-0685.patch
+++ b/debian/patches/CVE-2022-0685.patch
@@ -10,25 +10,21 @@ Origin: https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f
src/version.c | 2 ++
4 files changed, 18 insertions(+), 1 deletion(-)
-diff --git a/src/charset.c b/src/charset.c
-index 1fbbaee..427686d 100644
--- a/src/charset.c
+++ b/src/charset.c
-@@ -1672,6 +1672,12 @@ vim_isupper(int c)
- return isupper(c);
+@@ -1673,6 +1673,12 @@ vim_isupper(int c)
}
-+ int
+ int
+vim_isalpha(int c)
+{
+ return vim_islower(c) || vim_isupper(c);
+}
+
- int
++ int
vim_toupper(int c)
{
-diff --git a/src/proto/charset.pro b/src/proto/charset.pro
-index bb4132f..c078ff6 100644
+ if (c <= '@')
--- a/src/proto/charset.pro
+++ b/src/proto/charset.pro
@@ -48,6 +48,7 @@ int vim_isxdigit(int c);