Commit 7059bff expands index range of "typ2" by one without expanding
affected arrays. d_xtermosc in struct display is one of these.

Related: 7059bff20a28778f9d3acf81cad07b1388d02309
  (ansi: add support for xterm OSC 11)
Related: eb2be1adf92d58bd8f4ca3458eb04da38bf33c2b
  (Fix out of bounds access when setting w_xtermosc after OSC 49)

Signed-off-by: Václav Doležal <vdole...@redhat.com>
---
 src/display.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/display.h b/src/display.h
index 0caaca1..531b9c8 100644
--- a/src/display.h
+++ b/src/display.h
@@ -124,7 +124,7 @@ struct Display {
                                           does not */
        int   d_bracketed;              /* bracketed paste mode */
        int   d_cursorstyle;            /* cursor style */
-       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 */
        DisplayStatus   d_status;                       /* is status displayed? 
*/
-- 
2.20.1


Reply via email to