[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [PATCH for screen-v4] Expand d_xtermosc array in struct d

From: Václav Doležal
Subject: [screen-devel] [PATCH for screen-v4] Expand d_xtermosc array in struct display
Date: Fri, 21 Feb 2020 14:02:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

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 <address@hidden>
 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 */
   struct mchar d_lpchar;       /* missing char */
   struct timeval d_status_time;        /* time of status display */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]