summaryrefslogtreecommitdiffstats
path: root/debian/patches/CVE-2022-0714.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 05:05:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 05:05:20 +0000
commitd314229aa657bc23c0fc99aa79a347326095b190 (patch)
treee2a542e09db76f34502e20a5f9a8c1a4ef52c420 /debian/patches/CVE-2022-0714.patch
parentAdding debian version 2:8.1.0875-5+deb10u2. (diff)
downloadvim-d314229aa657bc23c0fc99aa79a347326095b190.tar.xz
vim-d314229aa657bc23c0fc99aa79a347326095b190.zip
Adding debian version 2:8.1.0875-5+deb10u3.debian/2%8.1.0875-5+deb10u3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/CVE-2022-0714.patch')
-rw-r--r--debian/patches/CVE-2022-0714.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/CVE-2022-0714.patch b/debian/patches/CVE-2022-0714.patch
new file mode 100644
index 0000000..1b86d51
--- /dev/null
+++ b/debian/patches/CVE-2022-0714.patch
@@ -0,0 +1,22 @@
+From: Markus Koschany <apo@debian.org>
+Date: Sun, 30 Oct 2022 21:56:04 +0100
+Subject: CVE-2022-0714
+
+Origin: https://github.com/vim/vim/commit/4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa
+---
+ src/edit.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/edit.c b/src/edit.c
+index eac4803..df84631 100644
+--- a/src/edit.c
++++ b/src/edit.c
+@@ -2113,6 +2113,8 @@ change_indent(
+ new_cursor_col += (*mb_ptr2len)(ptr + new_cursor_col);
+ else
+ ++new_cursor_col;
++ if (ptr[new_cursor_col] == NUL)
++ break;
+ vcol += lbr_chartabsize(ptr, ptr + new_cursor_col, (colnr_T)vcol);
+ }
+ vcol = last_vcol;