diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2017-09-13 06:09:10 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2017-09-13 06:09:10 -0500 |
commit | 7d40b53fbf9a472cd38a5a498d333b8c76a1d192 (patch) | |
tree | f436425ce352a018b90c6fbed1a16ee4227fcf9c | |
parent | 76b269b1f49cec91563711dd508d43c2c2f798d3 (diff) | |
download | libpng-7d40b53fbf9a472cd38a5a498d333b8c76a1d192.tar.gz |
[libpng16] Use png_chunk_report when handling a truncated ICC chunk.
-rw-r--r-- | png.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -816,14 +816,14 @@ png_get_copyright(png_const_structrp png_ptr) #else # ifdef __STDC__ return PNG_STRING_NEWLINE \ - "libpng version 1.6.33beta03 - September 12, 2017" PNG_STRING_NEWLINE \ + "libpng version 1.6.33beta03 - September 13, 2017" PNG_STRING_NEWLINE \ "Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson" \ PNG_STRING_NEWLINE \ "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \ "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \ PNG_STRING_NEWLINE; # else - return "libpng version 1.6.33beta03 - September 12, 2017\ + return "libpng version 1.6.33beta03 - September 13, 2017\ Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson\ Copyright (c) 1996-1997 Andreas Dilger\ Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."; @@ -2229,8 +2229,8 @@ png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace, * profile. */ if (tag > profile + 11) - return png_icc_profile_error(png_ptr, colorspace, name, tag_id, - "ICC profile tag table truncated"); + png_chunk_report(png_ptr,"ICC profile tag table truncated", + PNG_CHUNK_ERROR); if (tag_start > profile_length || tag_length > profile_length - tag_start) return png_icc_profile_error(png_ptr, colorspace, name, tag_id, "ICC profile tag outside profile"); |