commit | aff44028ba87bf506c089045abc2ca167f63e36a | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Thu Nov 03 16:11:08 2011 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Thu Nov 03 16:11:08 2011 -0500 |
tree | 709e60b4a1a725f3fb4fb986297159628aa93510 | |
parent | 6d7705eedff29f63895c23e4713034e3a9dfee45 [diff] |
[libpng15] Fixed bug in pngvalid on early allocation failure; fixed type cast in pngmem.c; pngvalid would attempt to call png_error() if the allocation of a png_struct or png_info failed. This would probably have led to a crash. The pngmem.c implementation of png_malloc() included a cast to png_size_t which would fail on large allocations on 16-bit systems.