mesa/src/egl
Sebastian Keller 50cd036871 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>
(cherry picked from commit f50fe9b0b6)
2022-06-24 10:11:37 -07:00
..
drivers egl/wayland: Don't try to access modifiers u_vector as dynarray 2022-06-24 10:11:37 -07:00
generate Remove the shebang from eglFunctionList.py. 2021-10-13 05:34:27 +00:00
main egl: don't make LIBGL_ALWAYS_SOFTWARE and MESA_LOADER_DRIVER_OVERRIDE=zink exclusive 2022-04-13 00:14:57 +00:00
wayland
egl-entrypoint-check.py python: explicitly require python3 2021-08-14 21:44:31 +00:00
egl-glvnd-symbols.txt
egl-symbols.txt
meson.build egl: add config debug printout 2021-12-11 00:25:04 +00:00