qemu-e2k/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
console.h ui/console: allow to override the default VC 2023-11-07 14:04:25 +04:00
dbus-display.h
dbus-module.h
egl-context.h
egl-helpers.h
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
qemu-spice.h
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