Fix out-of-bounds memory accesses in ASTC decoder
authorPyry Haulos <phaulos@google.com>
Thu, 4 Aug 2016 18:28:13 +0000 (11:28 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 4 Aug 2016 18:28:13 +0000 (11:28 -0700)
commit59afcbc7dc4baa51fbd5b4c6dfda576d8c590cad
treea1fa1f39550e80ccabf02963d902b75dc768d33b
parentefce6d8d6e037ecf0cdcb695f55bd425bc49465a
Fix out-of-bounds memory accesses in ASTC decoder

interpolateWeights() was accessing weights outside weight grid bounds.
This resulted in valgrind errors even though values did not contribute
to result colors due to having zero-valued weights.
framework/common/tcuAstcUtil.cpp