tgsi: fix out of bounds access
authorRob Clark <robclark@freedesktop.org>
Thu, 26 May 2016 14:22:33 +0000 (10:22 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 26 May 2016 19:17:49 +0000 (15:17 -0400)
commit3d66ba971e984a1c58eda6a938a37f58ba6f8134
treeb4dec34bc1e80b9035555ee9681a7c4f446b6d32
parent0c02d7002d6c005b4c1fe997b5ef5916978dd183
tgsi: fix out of bounds access

Not sure why coverity calls this an out-of-bounds read vs out-of-bounds
write.

CID 1358920 (#1 of 1): Out-of-bounds read (OVERRUN)9. overrun-local:
Overrunning array r of 3 16-byte elements at element index 3 (byte
offset 48) using index chan (which evaluates to 3).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c