mesa/src/egl/drivers/dri2
Sebastian Keller f50fe9b0b6 egl/wayland: Don't try to access modifiers u_vector as dynarray
The modifiers are u_vectors, but the code was trying to access them
as dynarrays. This resulted in a wrong number of modifiers, which then
later on would also lead to invalid reads used as modifiers.

In the case of the iris driver, a wrongly read number of modifiers > 0
would also trigger an error message.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6643
Fixes: b5848b2dac ("egl/wayland: use surface dma-buf feedback to allocate surface buffers")
Reviewed-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17180>
2022-06-23 16:12:15 +00:00
..
egl_dri2.c egl: Learn about kopper 2022-04-07 00:17:40 +00:00
egl_dri2.h Revert "egl/wayland: deprecate drm_handle_format() and drm_handle_capabilities()" 2022-04-16 18:11:59 +00:00
platform_android.c egl+libsync: Add helper to complain about invalid fence fd's 2022-03-04 22:16:20 +00:00
platform_android.h
platform_android_mapper.cpp
platform_device.c egl: Learn about kopper 2022-04-07 00:17:40 +00:00
platform_drm.c egl: Learn about kopper 2022-04-07 00:17:40 +00:00
platform_surfaceless.c egl: Learn about kopper 2022-04-07 00:17:40 +00:00
platform_wayland.c egl/wayland: Don't try to access modifiers u_vector as dynarray 2022-06-23 16:12:15 +00:00
platform_x11.c egl/x11: add missing put_image cookie cleanups 2022-06-22 03:28:21 +00:00
platform_x11_dri3.c loader/dri3: replace is_pixmap with drawable type 2021-12-07 03:26:13 +00:00
platform_x11_dri3.h