tgsi: fix buffer overflow

Increase r to four channels as rgba is written to it
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2016-04-13 03:06:05 +02:00 committed by Dave Airlie
parent b9294bc345
commit b89708f95f
1 changed files with 1 additions and 1 deletions

View File

@ -4011,7 +4011,7 @@ static void
exec_atomop_buf(struct tgsi_exec_machine *mach,
const struct tgsi_full_instruction *inst)
{
union tgsi_exec_channel r[3];
union tgsi_exec_channel r[4];
union tgsi_exec_channel value[4], value2[4];
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];