projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a0692
)
mesa: fix out of bounds array access in rtgc debug code
author
Brian Paul
<brianp@vmware.com>
Thu, 4 Aug 2011 21:32:09 +0000
(15:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 4 Aug 2011 21:33:39 +0000
(15:33 -0600)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39841
This would only be hit if someone set RGTC_DEBUG=1.
src/mesa/main/texcompress_rgtc_tmp.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/texcompress_rgtc_tmp.h
b/src/mesa/main/texcompress_rgtc_tmp.h
index c8bf082a15846940bbebd5aa10c6ef0bdaddf291..48bbd374e08b18c6ee8eedf3e5ce618cf49344ae 100644
(file)
--- 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 ");