From 18bb4f50cfb219e29afa75f274041eeeb71c48fd Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 24 Jun 2024 18:08:47 +0000 Subject: xlib: Enlarge array for new formats Fixes a potential overflow in _cairo_xlib_display_get_xrender_format(). Caught by Coverity --- src/cairo-xlib-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h index 8e338aea6..e8900030b 100644 --- a/src/cairo-xlib-private.h +++ b/src/cairo-xlib-private.h @@ -83,7 +83,7 @@ struct _cairo_xlib_display { int render_major; int render_minor; - XRenderPictFormat *cached_xrender_formats[CAIRO_FORMAT_RGB30 + 1]; + XRenderPictFormat *cached_xrender_formats[CAIRO_FORMAT_RGBA128F + 1]; int force_precision; -- cgit v1.2.3