03f089a
From a96e68a70e362597c2ab49d3f9a60f4586a1ae5b Mon Sep 17 00:00:00 2001
03f089a
From: =?UTF-8?q?V=C3=A1clav=20Dole=C5=BEal?= <vdolezal@redhat.com>
03f089a
Date: Fri, 21 Feb 2020 13:49:08 +0100
03f089a
Subject: [PATCH] Expand d_xtermosc array in struct display
03f089a
MIME-Version: 1.0
03f089a
Content-Type: text/plain; charset=UTF-8
03f089a
Content-Transfer-Encoding: 8bit
03f089a
03f089a
Commit c5db181 expands index range of "typ2" by one without expanding
03f089a
affected arrays. d_xtermosc in struct display is one of these.
03f089a
03f089a
Related: c5db181b6e017cfccb8d7842ce140e59294d9f62
03f089a
  (ansi: add support for xterm OSC 11)
03f089a
Related: 68386dfb1fa33471372a8cd2e74686758a2f527b
03f089a
  (Fix out of bounds access when setting w_xtermosc after OSC 49)
03f089a
03f089a
Signed-off-by: Václav Doležal <vdolezal@redhat.com>
03f089a
---
a424f65
 display.h | 2 +-
03f089a
 1 file changed, 1 insertion(+), 1 deletion(-)
03f089a
a424f65
diff --git a/display.h b/display.h
03f089a
index 459cc5d..4fc2061 100644
a424f65
--- a/display.h
a424f65
+++ b/display.h
03f089a
@@ -112,7 +112,7 @@ struct display
03f089a
   int	d_mousetrack;		/* set when user wants to use mouse even when the window
03f089a
 				   does not */
03f089a
 #ifdef RXVT_OSC
03f089a
-  int   d_xtermosc[4];		/* osc used */
03f089a
+  int   d_xtermosc[5];		/* osc used */
03f089a
 #endif
03f089a
   struct mchar d_lpchar;	/* missing char */
03f089a
   struct timeval d_status_time;	/* time of status display */
03f089a
-- 
03f089a
2.20.1
03f089a