[libpng16] Fix png_get_iCCP() to allow null compression-type
This commit is contained in:
parent
cde1e1fe79
commit
7784cd3f6f
6
ANNOUNCE
6
ANNOUNCE
@ -1,4 +1,4 @@
|
|||||||
Libpng 1.6.35beta02 - March 6, 2018
|
Libpng 1.6.35beta02 - March 28, 2018
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -37,6 +37,10 @@ Version 1.6.35beta01 [March 6, 2018]
|
|||||||
Fixed incorrect bitmask for options.
|
Fixed incorrect bitmask for options.
|
||||||
Fixed many spelling typos.
|
Fixed many spelling typos.
|
||||||
|
|
||||||
|
Version 1.6.35bet02 [%DATE]
|
||||||
|
Make png_get_iCCP consistent with man page (allow compression-type argument
|
||||||
|
to be NULL, bug report by Lenard Szolnoki).
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
4
CHANGES
4
CHANGES
@ -6053,6 +6053,10 @@ Version 1.6.35beta01 [March 6, 2018]
|
|||||||
Fixed incorrect bitmask for options.
|
Fixed incorrect bitmask for options.
|
||||||
Fixed many spelling typos.
|
Fixed many spelling typos.
|
||||||
|
|
||||||
|
Version 1.6.35beta02 [March 28, 2018]
|
||||||
|
Make png_get_iCCP consistent with man page (allow compression-type argument
|
||||||
|
to be NULL, bug report by Lenard Szolnoki).
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
8
pngget.c
8
pngget.c
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
/* pngget.c - retrieval of values from info struct
|
/* pngget.c - retrieval of values from info struct
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.6.32 [August 24, 2017]
|
* Last changed in libpng 1.6.35 [(PENDING RELEASE)]
|
||||||
* Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
*
|
*
|
||||||
@ -741,8 +741,7 @@ png_get_iCCP(png_const_structrp png_ptr, png_inforp info_ptr,
|
|||||||
|
|
||||||
if (png_ptr != NULL && info_ptr != NULL &&
|
if (png_ptr != NULL && info_ptr != NULL &&
|
||||||
(info_ptr->valid & PNG_INFO_iCCP) != 0 &&
|
(info_ptr->valid & PNG_INFO_iCCP) != 0 &&
|
||||||
name != NULL && compression_type != NULL && profile != NULL &&
|
name != NULL && profile != NULL && proflen != NULL)
|
||||||
proflen != NULL)
|
|
||||||
{
|
{
|
||||||
*name = info_ptr->iccp_name;
|
*name = info_ptr->iccp_name;
|
||||||
*profile = info_ptr->iccp_profile;
|
*profile = info_ptr->iccp_profile;
|
||||||
@ -755,6 +754,7 @@ png_get_iCCP(png_const_structrp png_ptr, png_inforp info_ptr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user