mesa: fix out of bounds access in glGetFramebufferParameterivEXT
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Fri, 24 Jul 2020 17:19:07 +0000 (19:19 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 10:41:00 +0000 (10:41 +0000)
commit0906d5d504eb0209556787b020a6df58b4cc3069
treed8b31b2baf8d7a21e4ce1573fc59933293711e0c
parent28f258536581a740c8da8803cafbd5dc2711efd0
mesa: fix out of bounds access in glGetFramebufferParameterivEXT

ColorDrawBuffer is an array of MAX_DRAW_BUFFERS == 8.

Found by Coverity.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Fixes: 7534c536ca0 ("mesa: add EXT_dsa (Named)Framebuffer functions")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067>
src/mesa/main/fbobject.c