qemu/include/ui
Manos Pitsidianakis e0c58720bf ui/pixman-minimal.h: fix empty allocation
In the minimal pixman API stub that is used when the real pixman
dependency is missing a NULL dereference happens when
virtio-gpu-rutabaga allocates a pixman image with bits = NULL and
rowstride_bytes = zero. A buffer of rowstride_bytes * height is
allocated which is NULL. However, in that scenario pixman calculates a
new stride value based on given width, height and format size.

This commit adds a helper function that performs the same logic as
pixman.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20231121093840.2121195-1-manos.pitsidianakis@linaro.org>
2023-11-21 14:38:14 +04:00
..
clipboard.h spelling: information 2023-06-09 23:38:16 +03:00
console.h ui/console: allow to override the default VC 2023-11-07 14:04:25 +04:00
dbus-display.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
dbus-module.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
egl-context.h ui: split the GL context in a different object 2021-12-21 10:50:21 +04:00
egl-helpers.h ui/egl: query ANGLE d3d device 2023-06-27 17:08:56 +02:00
gtk.h ui: add optional d3d texture pointer to scanout texture 2023-06-27 17:08:56 +02:00
input.h ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00
kbd-state.h ui: spelling fixes 2023-08-31 19:47:43 +02:00
pixel_ops.h
pixman-minimal.h ui/pixman-minimal.h: fix empty allocation 2023-11-21 14:38:14 +04:00
qemu-pixman.h ui: add pixman-minimal.h 2023-11-07 14:04:25 +04:00
qemu-spice-module.h spice: wire up monitor in QemuSpiceOps. 2020-10-21 15:46:14 +02:00
qemu-spice.h ui/spice: QXLInterface method set_mm_time() is now dead, drop 2023-01-19 13:30:01 +01:00
rect.h virtio-gpu: replace PIXMAN for region/rect test 2023-11-07 14:04:25 +04:00
sdl2.h ui: add optional d3d texture pointer to scanout texture 2023-06-27 17:08:56 +02:00
shader.h
spice-display.h ui: spelling fixes 2023-08-31 19:47:43 +02:00
surface.h ui/console: move DisplaySurface to its own header 2023-09-12 10:37:02 +04:00
win32-kbd-hook.h ui/win32-kbd-hook: handle AltGr in a hook procedure 2020-05-19 09:06:44 +02:00