From d314229aa657bc23c0fc99aa79a347326095b190 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 8 May 2024 07:05:20 +0200 Subject: Adding debian version 2:8.1.0875-5+deb10u3. Signed-off-by: Daniel Baumann --- debian/patches/CVE-2022-2285.patch | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 debian/patches/CVE-2022-2285.patch (limited to 'debian/patches/CVE-2022-2285.patch') diff --git a/debian/patches/CVE-2022-2285.patch b/debian/patches/CVE-2022-2285.patch new file mode 100644 index 0000000..5105f02 --- /dev/null +++ b/debian/patches/CVE-2022-2285.patch @@ -0,0 +1,40 @@ +From: Markus Koschany +Date: Wed, 2 Nov 2022 22:34:23 +0100 +Subject: CVE-2022-2285 + +Origin: https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe +--- + src/term.c | 1 + + src/testdir/test_mapping.vim | 10 ++++++++++ + 2 files changed, 11 insertions(+) + +diff --git a/src/term.c b/src/term.c +index 47d2bda..bc46ed9 100644 +--- a/src/term.c ++++ b/src/term.c +@@ -4440,6 +4440,7 @@ check_termcode( + if (*tp == ESC && !p_ek && (State & INSERT)) + continue; + ++ tp[len] = NUL; + key_name[0] = NUL; /* no key name found yet */ + key_name[1] = NUL; /* no key name found yet */ + modifiers = 0; /* no modifiers yet */ +diff --git a/src/testdir/test_mapping.vim b/src/testdir/test_mapping.vim +index c454fc0..3c81bb5 100644 +--- a/src/testdir/test_mapping.vim ++++ b/src/testdir/test_mapping.vim +@@ -318,3 +318,13 @@ func Test_motionforce_omap() + delfunc Select + delfunc GetCommand + endfunc ++ ++func Test_using_past_typeahead() ++ nnoremap :00 0 ++ exe "norm :set \x80\xfb0=0\" ++ exe "sil norm :0\x0f\\" ++ ++ exe "norm :set \x80\xfb0=\" ++ nunmap :00 ++endfunc ++ -- cgit v1.2.3