gallium/radeon: fix crash in r600_set_streamout_targets
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 28 Apr 2016 20:11:42 +0000 (15:11 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 29 Apr 2016 16:55:06 +0000 (11:55 -0500)
commitaa6f88f891d6e070ea8fa251493e3d8ab2af98aa
treec7be281a6f4c4a1584b74c8dad3dc67b9c47f728
parent98c348d26b28a662d093543ecb7ca839e7883e8e
gallium/radeon: fix crash in r600_set_streamout_targets

Protect against dereferencing a gap in the targets array. This was triggered
by a test in the Khronos CTS.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeon/r600_streamout.c