[libpng17] Sync pngvalid.c with libpng16; update CHANGES and ANNOUNCE

This commit is contained in:
Glenn Randers-Pehrson
2016-06-24 21:36:29 -05:00
parent d6037dcb09
commit 12c3c2e136
3 changed files with 10 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
/* pngvalid.c - validate libpng by constructing then reading png files.
*
* Last changed in libpng 1.6.23 [(PENDING RELEASE)]
* Last changed in libpng 1.6.24 [(PENDING RELEASE)]
* Copyright (c) 2014-2016 Glenn Randers-Pehrson
* Written by John Cunningham Bowler
*
@@ -1589,7 +1589,7 @@ store_read_chunk(png_store *ps, png_bytep pb, const png_size_t max,
{
if (chunkpos < chunklen-4U)
{
uInt avail = -1;
uInt avail = (uInt)-1;
if (avail > (IDAT_len-4U) - IDAT_pos)
avail = (uInt)/*SAFE*/((IDAT_len-4U) - IDAT_pos);