commit | 88bcdc269b920b81ef01185772d32a08ad10728f | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Fri Nov 04 20:11:16 2011 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Fri Nov 04 20:12:03 2011 -0500 |
tree | ba5db84605fbe7658ba2c8fb9c70339129f9e9a3 | |
parent | aad7c828b28c671df88d1b400410ac8774cabfbf [diff] |
[libpng] Check compression_type parameter in png_get_iCCP and remove spurious casts. The compression_type parameter is always assigned to, so must be non-NULL. The cast of the profile length potentially truncated the value unnecessarily on a 16-bit int system, so the cast of the (byte) compression type to (int) is specified by ANSI-C anyway.