Commit dfa9664 for zlib
commit dfa96642fecfa8d818f96f378aa181cff115eab5
Author: Mark Adler <git@madler.net>
Date: Fri Oct 30 20:31:19 2026 -0700
Remove implied data error guarantee for a too-small window size.
diff --git a/zlib.h b/zlib.h
index 1e874f8..880bc44 100644
--- a/zlib.h
+++ b/zlib.h
@@ -871,8 +871,7 @@ ZEXTERN int ZEXPORT inflateInit2(z_streamp strm,
instead. windowBits must be greater than or equal to the windowBits value
provided to deflateInit2() while compressing, or it must be equal to 15 if
deflateInit2() was not used. If a compressed stream with a larger window
- size is given as input, inflate() will return with the error code
- Z_DATA_ERROR instead of trying to allocate a larger window.
+ size is given as input, inflate() may return with a Z_DATA_ERROR.
windowBits can also be zero to request that inflate use the window size in
the zlib header of the compressed stream.