summaryrefslogtreecommitdiff
path: root/png.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-09-14 07:21:58 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-09-14 07:21:58 -0500
commit4ddead1e1cbcd05128a51943e4caea161353764a (patch)
treea2b70206e2df7411d633c990e3534058e8cf7402 /png.c
parentd7edcc40e49d76636ec7a19e0e23359e6d3db9c1 (diff)
downloadlibpng-4ddead1e1cbcd05128a51943e4caea161353764a.tar.gz
[libpng16] Undo failed attempt to prevent UMR in png_icc_check_table().
Diffstat (limited to 'png.c')
-rw-r--r--png.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/png.c b/png.c
index 96ca9cd79..a70ca3dff 100644
--- a/png.c
+++ b/png.c
@@ -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 13, 2017" PNG_STRING_NEWLINE \
+ "libpng version 1.6.33beta03 - September 14, 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 13, 2017\
+ return "libpng version 1.6.33beta03 - September 14, 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.";
@@ -2228,9 +2228,6 @@ png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace,
/* This is a hard error; potentially it can cause read outside the
* profile.
*/
- if (tag > profile + 11)
- 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");