[libpng16] Imported from libpng-1.6.24beta02.tar

This commit is contained in:
Glenn Randers-Pehrson
2016-06-23 10:58:24 -05:00
parent da2ba024a5
commit 4b4a9583b4
24 changed files with 111 additions and 128 deletions

View File

@@ -1589,7 +1589,7 @@ store_read_chunk(png_store *ps, png_bytep pb, const png_size_t max,
{
if (chunkpos < chunklen-4U)
{
uInt avail = (uInt)-1;
uInt avail = -1;
if (avail > (IDAT_len-4U) - IDAT_pos)
avail = (uInt)/*SAFE*/((IDAT_len-4U) - IDAT_pos);