summaryrefslogtreecommitdiffstats
path: root/debian/patches/CVE-2022-3705.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/CVE-2022-3705.patch')
-rw-r--r--debian/patches/CVE-2022-3705.patch20
1 files changed, 7 insertions, 13 deletions
diff --git a/debian/patches/CVE-2022-3705.patch b/debian/patches/CVE-2022-3705.patch
index febdb59..531ba7c 100644
--- a/debian/patches/CVE-2022-3705.patch
+++ b/debian/patches/CVE-2022-3705.patch
@@ -9,11 +9,9 @@ Origin: https://github.com/vim/vim/commit/d0fab10ed2a86698937e3c3fed2f10bd9bb5e7
src/version.c | 2 ++
3 files changed, 23 insertions(+)
-diff --git a/src/quickfix.c b/src/quickfix.c
-index 3bfa027..d6f773b 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
-@@ -4274,6 +4274,9 @@ qf_update_buffer(qf_info_T *qi, qfline_T *old_last)
+@@ -4274,6 +4274,9 @@ qf_update_buffer(qf_info_T *qi, qfline_T
// when the added lines are not visible.
if ((win = qf_find_win(qi)) != NULL && old_line_count < win->w_botline)
redraw_buf_later(buf, NOT_VALID);
@@ -23,7 +21,7 @@ index 3bfa027..d6f773b 100644
}
}
-@@ -4408,6 +4411,9 @@ qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last)
+@@ -4408,6 +4411,9 @@ qf_fill_buffer(qf_info_T *qi, buf_T *buf
break;
}
@@ -33,11 +31,9 @@ index 3bfa027..d6f773b 100644
if (old_last == NULL)
// Delete the empty line which is now at the end
(void)ml_delete(lnum + 1, FALSE);
-diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim
-index 2e5fffa..860e417 100644
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
-@@ -3931,3 +3931,18 @@ func Test_lopen_bwipe()
+@@ -3915,3 +3915,18 @@ func Test_lopen_bwipe()
delfunc R
endfunc
@@ -56,16 +52,14 @@ index 2e5fffa..860e417 100644
+ augroup END
+endfunc
+
-diff --git a/src/version.c b/src/version.c
-index cd174b0..28f8753 100644
--- a/src/version.c
+++ b/src/version.c
-@@ -791,6 +791,8 @@ static char *(features[]) =
-
+@@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
-+/**/
-+ 805,
/**/
++ 805,
++/**/
5024,
/**/
+ 4214,