mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[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:
committed by
Glenn Randers-Pehrson
parent
c1217ee280
commit
13a87d9682
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user