diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 05:05:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 05:05:20 +0000 |
commit | d314229aa657bc23c0fc99aa79a347326095b190 (patch) | |
tree | e2a542e09db76f34502e20a5f9a8c1a4ef52c420 /debian/patches/CVE-2022-0572.patch | |
parent | Adding debian version 2:8.1.0875-5+deb10u2. (diff) | |
download | vim-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-0572.patch')
-rw-r--r-- | debian/patches/CVE-2022-0572.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/CVE-2022-0572.patch b/debian/patches/CVE-2022-0572.patch new file mode 100644 index 0000000..0121992 --- /dev/null +++ b/debian/patches/CVE-2022-0572.patch @@ -0,0 +1,25 @@ +From: Markus Koschany <apo@debian.org> +Date: Sun, 30 Oct 2022 20:40:53 +0100 +Subject: CVE-2022-0572 + +Origin: https://github.com/vim/vim/commit/6e28703a8e41f775f64e442c5d11ce1ff599aa3f +--- + src/ex_cmds.c | 4 ++++ + src/testdir/test_retab.vim | 19 +++++++++++++++++++ + 2 files changed, 23 insertions(+) + +diff --git a/src/ex_cmds.c b/src/ex_cmds.c +index 5ad8913..b3be24e 100644 +--- a/src/ex_cmds.c ++++ b/src/ex_cmds.c +@@ -821,6 +821,10 @@ ex_retab(exarg_T *eap) + if (ptr[col] == NUL) + break; + vcol += chartabsize(ptr + col, (colnr_T)vcol); ++ if (vcol >= MAXCOL) ++ { ++ break; ++ } + if (has_mbyte) + col += (*mb_ptr2len)(ptr + col); + else |