mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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>
This commit is contained in:
parent
0c02d7002d
commit
3d66ba971e
1 changed files with 1 additions and 1 deletions
|
|
@ -3851,7 +3851,7 @@ static void
|
|||
exec_load_mem(struct tgsi_exec_machine *mach,
|
||||
const struct tgsi_full_instruction *inst)
|
||||
{
|
||||
union tgsi_exec_channel r[3];
|
||||
union tgsi_exec_channel r[4];
|
||||
uint chan;
|
||||
char *ptr = mach->LocalMem;
|
||||
uint32_t offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue