Commit 03a7e0d for zlib
commit 03a7e0d14503bd2528c15c9d0cec056b3723c124
Author: Mark Adler <git@madler.net>
Date: Sun Oct 25 12:12:22 2026 -0700
Don't treat errors in the first gzip member as trailing garbage.
diff --git a/gzread.c b/gzread.c
index 747b7e8..5b3e0a5 100644
--- a/gzread.c
+++ b/gzread.c
@@ -160,7 +160,7 @@ local int gz_look(gz_statep state) {
strm->next_in[2] == 8 && strm->next_in[3] < 32) {
inflateReset(strm);
state->how = GZIP;
- state->junk = 1;
+ state->junk = 0;
state->direct = 0;
return 0;
}