From: Brian Paul Date: Thu, 4 Aug 2011 21:32:09 +0000 (-0600) Subject: mesa: fix out of bounds array access in rtgc debug code X-Git-Tag: 062012170305~4896^2~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c8d079e205919b24e04efdc2421c18d03f078ff;p=profile%2Fivi%2Fmesa.git 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. --- diff --git a/src/mesa/main/texcompress_rgtc_tmp.h b/src/mesa/main/texcompress_rgtc_tmp.h index c8bf082..48bbd37 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 ");