summaryrefslogtreecommitdiffstats
path: root/debian/patches/CVE-2022-0685.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 05:09:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 05:09:20 +0000
commit711b5e29b9a1e65610a6ac243c55e058e27a03e5 (patch)
treeb43d074b53c71ba5558dd4613e44f7fa85715753 /debian/patches/CVE-2022-0685.patch
parentReleasing progress-linux version 2:8.1.0875-5+deb10u4progress5u1. (diff)
downloadvim-711b5e29b9a1e65610a6ac243c55e058e27a03e5.tar.xz
vim-711b5e29b9a1e65610a6ac243c55e058e27a03e5.zip
Merging debian version 2:8.1.0875-5+deb10u5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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);