[libpng16] Removed a redundant test (suggested by "irwir" in Github issue #180).
diff --git a/ANNOUNCE b/ANNOUNCE
index 799a8f0..c12d5ae 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -53,6 +53,7 @@
Initialize memory allocated by png_read_buffer to zero, using memset, to
stop an oss-fuzz "use of uninitialized value" detection in
png_icc_check_tag_table()() due to truncated iCCP chunk.
+ Removed a redundant test (suggested by "irwir" in Github issue #180).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/CHANGES b/CHANGES
index eaa508a..405d1a3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6023,6 +6023,7 @@
Initialize memory allocated by png_read_buffer to zero, using memset, to
stop an oss-fuzz "use of uninitialized value" detection in
png_icc_check_tag_table()() due to truncated iCCP chunk.
+ Removed a redundant test (suggested by "irwir" in Github issue #180).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/pngrutil.c b/pngrutil.c
index 61b22cd..eb6dc6a 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -738,9 +738,7 @@
{
/* inflateReset failed, store the error message */
png_zstream_error(png_ptr, ret);
-
- if (ret == Z_STREAM_END)
- ret = PNG_UNEXPECTED_ZLIB_RETURN;
+ ret = PNG_UNEXPECTED_ZLIB_RETURN;
}
}