2 commits - src/cairo-xlib-private.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 24 21:26:30 UTC 2024


 src/cairo-xlib-private.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 16dd5cd4c2fb74ad6ef0d0a221b97d0c222d259f
Merge: 409a6b522 18bb4f50c
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Jun 24 21:26:26 2024 +0000

    Merge branch 'wip/otte/xlib-overflow' into 'master'
    
    xlib: Enlarge array for new formats
    
    See merge request cairo/cairo!567

commit 18bb4f50cfb219e29afa75f274041eeeb71c48fd
Author: Benjamin Otte <otte at gnome.org>
Date:   Mon Jun 24 18:08:47 2024 +0000

    xlib: Enlarge array for new formats
    
    Fixes a potential overflow in _cairo_xlib_display_get_xrender_format().
    
    Caught by Coverity

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;
 


More information about the cairo-commit mailing list