aco: fix stack buffer overflow in apply_sgprs()
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 17 Jan 2020 11:35:20 +0000 (11:35 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jan 2020 11:13:11 +0000 (11:13 +0000)
commite151398de61f53ecc6b19a34d33748a4c9e99abf
treee330862ca3658dfed7f86b49e010f8eee5d519b7
parent9b2ccd6a0e98b0c70f9dae275f4a2d0b43219709
aco: fix stack buffer overflow in apply_sgprs()

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: cef78797191 ('aco: rewrite apply_sgprs()')
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2361
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3442>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3442>
src/amd/compiler/aco_optimizer.cpp