[libpng16] Fixed ICC profile parsing and sRGB profile recognition

and moved checksum-icc.c from contrib/libtests to contrib/tools.
This commit is contained in:
John Bowler
2012-03-28 09:51:43 -05:00
committed by Glenn Randers-Pehrson
parent c1217ee280
commit 13a87d9682
4 changed files with 6 additions and 8 deletions

View File

@@ -1435,7 +1435,7 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
memcpy(profile, profile_header,
sizeof profile_header);
size = (sizeof profile_header) + 12 * tag_count;
size = 12 * tag_count;
ret = png_inflate_read(png_ptr, local_buffer,
sizeof local_buffer, &length,
@@ -1516,8 +1516,6 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
png_colorspace_sync(png_ptr,
info_ptr);
png_free(png_ptr, profile);
return;
}
}