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-3134.patch | |
parent | Adding debian version 2:8.1.0875-5+deb10u2. (diff) | |
download | vim-fabaed95f31e5655d8d72dcd7baed79b08c872be.tar.xz vim-fabaed95f31e5655d8d72dcd7baed79b08c872be.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-3134.patch')
-rw-r--r-- | debian/patches/CVE-2022-3134.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/CVE-2022-3134.patch b/debian/patches/CVE-2022-3134.patch new file mode 100644 index 0000000..16f8949 --- /dev/null +++ b/debian/patches/CVE-2022-3134.patch @@ -0,0 +1,29 @@ +From: Markus Koschany <apo@debian.org> +Date: Mon, 7 Nov 2022 00:33:16 +0100 +Subject: CVE-2022-3134 + +Origin: https://github.com/vim/vim/commit/ccfde4d028e891a41e3548323c3d47b06fb0b83e +--- + src/tag.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/src/tag.c b/src/tag.c +index 4e96da3..6fcd6ee 100644 +--- a/src/tag.c ++++ b/src/tag.c +@@ -539,6 +539,15 @@ do_tag( + max_num_matches = MAXCOL; /* If less than max_num_matches + found: all matches found. */ + ++ // A tag function may do anything, which may cause various ++ // information to become invalid. At least check for the tagstack ++ // to still be the same. ++ if (tagstack != curwin->w_tagstack) ++ { ++ FreeWild(new_num_matches, new_matches); ++ break; ++ } ++ + /* If there already were some matches for the same name, move them + * to the start. Avoids that the order changes when using + * ":tnext" and jumping to another file. */ |