Commit 16697f8 for zlib
commit 16697f8310ef64707ff25a9c90754ab79431fc6a
Author: Mark Adler <git@madler.net>
Date: Sun Nov 15 21:07:12 2026 -0800
Remove a test in inflate_fast() that is never true.
diff --git a/inffast.c b/inffast.c
index 81e1125..2fde961 100644
--- a/inffast.c
+++ b/inffast.c
@@ -342,7 +342,7 @@ void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
in -= len;
bits -= len << 3;
hold = (unsigned long)(hold8 & ((1U << bits) - 1));
- if (state->mode != LEN || in >= last || out >= end)
+ if (state->mode != LEN || out >= end)
goto leave;
}
#endif