[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.
This commit is contained in:
John Bowler
2011-11-03 16:11:08 -05:00
committed by Glenn Randers-Pehrson
parent 6d7705eedf
commit aff44028ba
6 changed files with 44 additions and 12 deletions

View File

@@ -28,6 +28,11 @@ Changes since the last public release (1.5.6):
Version 1.5.7 [November 3, 2011]
Added support for ARM processor (Mans Rullgard)
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.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit