diff options
author | Brian Paul <[email protected]> | 2011-08-04 15:32:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-08-04 15:33:39 -0600 |
commit | 1c8d079e205919b24e04efdc2421c18d03f078ff (patch) | |
tree | 03ae01f506474523be73a3b26e393ce62e48b4a6 /src/mesa | |
parent | d6a0692f9dc055c5e5f0e7c806537ad24aa13709 (diff) |
mesa: fix out of bounds array access in rtgc debug code
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39841
This would only be hit if someone set RGTC_DEBUG=1.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texcompress_rgtc_tmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texcompress_rgtc_tmp.h b/src/mesa/main/texcompress_rgtc_tmp.h index c8bf082a158..48bbd374e08 100644 --- a/src/mesa/main/texcompress_rgtc_tmp.h +++ b/src/mesa/main/texcompress_rgtc_tmp.h @@ -181,7 +181,7 @@ static void TAG(encode_rgtc_chan)(TYPE *blkaddr, TYPE srccolors[4][4], fprintf(stderr, "%d ", alphaenc1[i]); } fprintf(stderr, "cutVals "); - for (i = 0; i < 8; i++) { + for (i = 0; i < 7; i++) { fprintf(stderr, "%d ", acutValues[i]); } fprintf(stderr, "srcVals "); |