xlib: Enlarge array for new formats

Fixes a potential overflow in _cairo_xlib_display_get_xrender_format().

Caught by Coverity
This commit is contained in:
Benjamin Otte 2024-06-24 18:08:47 +00:00
parent b807b7a87a
commit 18bb4f50cf

View file

@ -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;