mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-19 12:28:30 +02:00
Don't leave the shm field uninitialized when building without shm support.
This can result in reading an uninitialized value in draw_image_boxes() in cairo-xlib-render-compositor.c.
This commit is contained in:
parent
3894a1ab33
commit
cb86c13b62
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@
|
|||
#include "cairo-xlib-surface-private.h"
|
||||
|
||||
#if !HAVE_X11_EXTENSIONS_XSHM_H || !(HAVE_X11_EXTENSIONS_SHMPROTO_H || HAVE_X11_EXTENSIONS_SHMSTR_H)
|
||||
void _cairo_xlib_display_init_shm (cairo_xlib_display_t *display) {}
|
||||
void _cairo_xlib_display_init_shm (cairo_xlib_display_t *display)
|
||||
{
|
||||
display->shm = NULL;
|
||||
}
|
||||
|
||||
cairo_surface_t *
|
||||
_cairo_xlib_surface_get_shm (cairo_xlib_surface_t *surface,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue