From 8b37fcb1d884599cd1bb91f27ad86ae9167ca19d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 18 Nov 2019 21:07:01 +0000 Subject: [PATCH] backend: xrender: fix array size off-by-one Signed-off-by: Yuxuan Shui --- src/backend/xrender/xrender.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/xrender/xrender.c b/src/backend/xrender/xrender.c index ab4e664..a44dbc1 100644 --- a/src/backend/xrender/xrender.c +++ b/src/backend/xrender/xrender.c @@ -37,11 +37,11 @@ typedef struct _xrender_data { xcb_render_picture_t back[3]; /// The back buffer that is for temporary use /// Age of each back buffer. - int buffer_age[2]; + int buffer_age[3]; /// The back buffer we should be painting into int curr_back; /// The corresponding pixmap to the back buffer - xcb_pixmap_t back_pixmap[2]; + xcb_pixmap_t back_pixmap[3]; /// The original root window content, usually the wallpaper. /// We save it so we don't loss the wallpaper when we paint over /// it.