mesa: fix out of bounds memory read in mipmap gen code
authorBrian Paul <brianp@vmware.com>
Wed, 1 Sep 2010 19:21:51 +0000 (13:21 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 1 Sep 2010 19:24:26 +0000 (13:24 -0600)
commit4ff3467daf0ac07e4295c7d2e2ad3c3c8c89dff6
tree1a14fc3f765725a2ddb2e34799500798268b659c
parentfd7f2ae085ea55649089b29515e143eed43c177e
mesa: fix out of bounds memory read in mipmap gen code

Out of bounds reads could happen for reducing WxH to WxH/2
or WxH to W/2xH.

Fixes fd.o bug 29918.
src/mesa/main/mipmap.c