mesa/main: fix integer overflows in _mesa_image_offset
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 13 May 2016 06:48:04 +0000 (01:48 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 15 Jun 2016 07:27:30 +0000 (09:27 +0200)
commit6510e0734563ff8d30e45b8781153367db15cc5b
treee2fe5349f533a299a641cf5389be2b30712d6ef5
parenta8a9d1bf41c00123cefb6e757f3509c62e880a15
mesa/main: fix integer overflows in _mesa_image_offset

Found using -fsanitize=undefined.

Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/image.c