summaryrefslogtreecommitdiffstats
path: root/debian/patches/CVE-2022-1942.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/CVE-2022-1942.patch')
-rw-r--r--debian/patches/CVE-2022-1942.patch30
1 files changed, 10 insertions, 20 deletions
diff --git a/debian/patches/CVE-2022-1942.patch b/debian/patches/CVE-2022-1942.patch
index e2f5b9c..7b91963 100644
--- a/debian/patches/CVE-2022-1942.patch
+++ b/debian/patches/CVE-2022-1942.patch
@@ -20,8 +20,6 @@ Backport: Drop test case, because the expected E565 was only introduced in
8.2.0670 and the testcase does not otherwise fail or issue messages in
valgrind.
-diff --git a/src/buffer.c b/src/buffer.c
-index efec431c822d..e775398d0294 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2297,12 +2297,7 @@ buflist_getfile(
@@ -38,15 +36,12 @@ index efec431c822d..e775398d0294 100644
return FAIL;
/* altfpos may be changed by getfile(), get it now */
-diff --git a/src/ex_getln.c b/src/ex_getln.c
-index 9dadfbf2fabe..623bd1d4984a 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
-@@ -2589,6 +2589,21 @@ get_text_locked_msg(void)
- return e_secure;
+@@ -2590,6 +2590,21 @@ get_text_locked_msg(void)
}
-+/*
+ /*
+ * Check for text, window or buffer locked.
+ * Give an error message and return TRUE if something is locked.
+ */
@@ -61,9 +56,10 @@ index 9dadfbf2fabe..623bd1d4984a 100644
+ return curbuf_locked();
+}
+
- /*
++/*
* Check if "curbuf_lock" or "allbuf_lock" is set and return TRUE when it is
* and give an error message.
+ */
@@ -7188,6 +7203,10 @@ open_cmdwin(void)
int save_KeyTyped;
#endif
@@ -75,11 +71,9 @@ index 9dadfbf2fabe..623bd1d4984a 100644
/* Can't do this recursively. Can't do it when typing a password. */
if (cmdwin_type != 0
# if defined(FEAT_CRYPT) || defined(FEAT_EVAL)
-diff --git a/src/proto/ex_getln.pro b/src/proto/ex_getln.pro
-index 8c8bd0ebd4cd..bcc310c7dd0e 100644
--- a/src/proto/ex_getln.pro
+++ b/src/proto/ex_getln.pro
-@@ -5,6 +5,7 @@
+@@ -5,6 +5,7 @@ char_u *getcmdline_prompt(int firstc, ch
int text_locked(void);
void text_locked_msg(void);
char *get_text_locked_msg(void);
@@ -87,27 +81,23 @@ index 8c8bd0ebd4cd..bcc310c7dd0e 100644
int curbuf_locked(void);
int allbuf_locked(void);
char_u *getexline(int c, void *cookie, int indent);
-diff --git a/src/version.c b/src/version.c
-index 18a1fdb41cb6..a15bb3ed8d6a 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 */
-+/**/
-+ 5043,
/**/
++ 5043,
++/**/
805,
/**/
-diff --git a/src/window.c b/src/window.c
-index f2913d4a76ef..9b5ac97286cd 100644
+ 5024,
--- a/src/window.c
+++ b/src/window.c
@@ -4173,14 +4173,11 @@ win_goto(win_T *wp)
win_T *owp = curwin;
#endif
-
+
- if (text_locked())
+ if (text_or_buf_locked())
{