[devel] pngvalid: add memory overwrite and palette image checks

also minor cleanup in the libpng code itself (pngrtran.c and pngrutil.c) and some
extra checking there.
This commit is contained in:
John Bowler
2011-05-15 18:52:39 -05:00
committed by Glenn Randers-Pehrson
parent 593fc04096
commit 9994f25733
4 changed files with 911 additions and 473 deletions

View File

@@ -111,6 +111,7 @@ struct png_struct_def
png_bytep avg_row; /* buffer to save "avg" row when filtering */
png_bytep paeth_row; /* buffer to save "Paeth" row when filtering */
png_row_info row_info; /* used for transformation routines */
png_size_t info_rowbytes; /* Adding in 1.5.3: cache of updated row bytes */
png_uint_32 idat_size; /* current IDAT size for read */
png_uint_32 crc; /* current chunk CRC value */