llvmpipe: fix debug print iterating in set_framebuffer_state
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 28 Jan 2022 14:46:47 +0000 (09:46 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Mar 2022 21:42:02 +0000 (21:42 +0000)
commit4c76a19ca35ded99a2f13eef59a0cd161e3c43b0
tree048099921ec0573a68cc9c1ffde303c2ae7ec99a
parent3ef093f697ad9027ba514c7a4a6a10b7bd95bd47
llvmpipe: fix debug print iterating in set_framebuffer_state

this would potentially access garbage memory by checking the existing
state using the incoming state's iterator values

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14857>
src/gallium/drivers/llvmpipe/lp_state_surface.c