diff options
author | Eric Anholt <[email protected]> | 2015-07-29 14:40:10 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-07-30 15:46:27 -0700 |
commit | 86541cf8cea77f4b887dd061e7d6e3e4767f86fd (patch) | |
tree | d6c34c8dcfc32a5dc1cc6d73b08978370ed6c032 /src/gallium/drivers/vc4/vc4_qpu_disasm.c | |
parent | d0173bce371e3aafa732600c1456a9282ff5d900 (diff) |
vc4: Avoid overflowing various static tables.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qpu_disasm.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qpu_disasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu_disasm.c b/src/gallium/drivers/vc4/vc4_qpu_disasm.c index 55e0e6139b5..00aeb300a9b 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_disasm.c +++ b/src/gallium/drivers/vc4/vc4_qpu_disasm.c @@ -225,7 +225,7 @@ static const char *qpu_condflags[] = { }; #define DESC(array, index) \ - ((index > ARRAY_SIZE(array) || !(array)[index]) ? \ + ((index >= ARRAY_SIZE(array) || !(array)[index]) ? \ "???" : (array)[index]) static const char * |