fix insufficient size of struct display::d_xtermosc
This commit is contained in:
parent
17f00db3dc
commit
03f089ad92
37
screen-4.8.0-expand-d_xtermosc.patch
Normal file
37
screen-4.8.0-expand-d_xtermosc.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From a96e68a70e362597c2ab49d3f9a60f4586a1ae5b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?V=C3=A1clav=20Dole=C5=BEal?= <vdolezal@redhat.com>
|
||||
Date: Fri, 21 Feb 2020 13:49:08 +0100
|
||||
Subject: [PATCH] Expand d_xtermosc array in struct display
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Commit c5db181 expands index range of "typ2" by one without expanding
|
||||
affected arrays. d_xtermosc in struct display is one of these.
|
||||
|
||||
Related: c5db181b6e017cfccb8d7842ce140e59294d9f62
|
||||
(ansi: add support for xterm OSC 11)
|
||||
Related: 68386dfb1fa33471372a8cd2e74686758a2f527b
|
||||
(Fix out of bounds access when setting w_xtermosc after OSC 49)
|
||||
|
||||
Signed-off-by: Václav Doležal <vdolezal@redhat.com>
|
||||
---
|
||||
src/display.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/display.h b/src/display.h
|
||||
index 459cc5d..4fc2061 100644
|
||||
--- a/src/display.h
|
||||
+++ b/src/display.h
|
||||
@@ -112,7 +112,7 @@ struct display
|
||||
int d_mousetrack; /* set when user wants to use mouse even when the window
|
||||
does not */
|
||||
#ifdef RXVT_OSC
|
||||
- int d_xtermosc[4]; /* osc used */
|
||||
+ int d_xtermosc[5]; /* osc used */
|
||||
#endif
|
||||
struct mchar d_lpchar; /* missing char */
|
||||
struct timeval d_status_time; /* time of status display */
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Summary: A screen manager that supports multiple logins on one terminal
|
||||
Name: screen
|
||||
Version: 4.8.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3+
|
||||
URL: http://www.gnu.org/software/screen
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
@ -21,6 +21,7 @@ Patch2: screen-4.3.1-screenrc.patch
|
||||
Patch3: screen-E3.patch
|
||||
Patch4: screen-4.3.1-suppress_remap.patch
|
||||
Patch5: screen-4.3.1-crypt.patch
|
||||
Patch6: screen-4.8.0-expand-d_xtermosc.patch
|
||||
|
||||
%description
|
||||
The screen utility allows you to have multiple logins on just one
|
||||
@ -114,6 +115,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Feb 24 2020 Vaclav Dolezal <vdolezal@redhat.com> - 4.8.0-2
|
||||
- fix insufficient size of struct display::d_xtermosc
|
||||
|
||||
* Fri Feb 07 2020 Vaclav Dolezal <vdolezal@redhat.com> - 4.8.0-1
|
||||
- New upstream release 4.8.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user