mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
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> |
||
|---|---|---|
| .. | ||
| clipboard.h | ||
| console.h | ||
| dbus-display.h | ||
| dbus-module.h | ||
| egl-context.h | ||
| egl-helpers.h | ||
| gtk.h | ||
| input.h | ||
| kbd-state.h | ||
| pixel_ops.h | ||
| pixman-minimal.h | ||
| qemu-pixman.h | ||
| qemu-spice-module.h | ||
| qemu-spice.h | ||
| rect.h | ||
| sdl2.h | ||
| shader.h | ||
| spice-display.h | ||
| surface.h | ||
| win32-kbd-hook.h | ||