commit | d3ff9df7a1191da1c47710ea8bd568204e74a976 | [log] [tgz] |
---|---|---|
author | Henrik Smiding <henrik.smiding@intel.com> | Tue Feb 17 17:56:24 2015 +0100 |
committer | Narayan Kamath <narayan@google.com> | Wed Feb 25 14:46:54 2015 +0000 |
tree | 3848227ee25ab031f99c194533e13586c6e997cd | |
parent | 31f957bd40b2fd7ce44c5f83be20bc5f39ff9838 [diff] |
Fix buffer overwrite in png_build_index Fixes buffer size calculations to take possible transformations into account. Images with less than 256 colors in the palette, that are transformed up to 8-bit, will not overwrite memory at the end of the buffer. Verified with a 16 color image. Also fixes some build warnings. Change-Id: Ib7b256ffe7816148bfd39114ab7036dcf2218023 Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>