Skip to content

util/primconvert: Avoid OoB with improbable draws

Rob Clark requested to merge robclark/mesa:gallium/primconvert-asan into main

What does this MR do and why?

util/primconvert: Avoid OoB with improbable draws

Detect when the temporary index buffer cannot be generated due to too
large primitive count, and simply drop the draw on the floor.

Fixes a webgl reachable asan/crash.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12092
Signed-off-by: Rob Clark <robdclark@chromium.org>

Merge request reports

Loading