Commit e3cd2b1 for zlib
commit e3cd2b12eeb7606441da7489fe773e148a17c244
Author: Mark Adler <git@madler.net>
Date: Sun Oct 25 20:25:33 2026 -0700
Note that deflateBound() cannot precede deflateSetDictionary().
diff --git a/zlib.h b/zlib.h
index 63b2f32..8bd9f86 100644
--- a/zlib.h
+++ b/zlib.h
@@ -771,15 +771,15 @@ ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen);
ZEXTERN z_size_t ZEXPORT deflateBound_z(z_streamp strm, z_size_t sourceLen);
/*
deflateBound() returns an upper bound on the compressed size after
- deflation of sourceLen bytes. It must be called after deflateInit() or
- deflateInit2(), and after deflateSetHeader(), if used. This would be used
- to allocate an output buffer for deflation in a single pass, and so would be
- called before deflate(). If that first deflate() call is provided the
- sourceLen input bytes, an output buffer allocated to the size returned by
- deflateBound(), and the flush value Z_FINISH, then deflate() is guaranteed
- to return Z_STREAM_END. Note that it is possible for the compressed size to
- be larger than the value returned by deflateBound() if flush options other
- than Z_FINISH or Z_NO_FLUSH are used.
+ deflation of sourceLen bytes. It must be called after deflateInit() or
+ deflateInit2(), and after deflateSetHeader() or deflateSetDictionary(), if
+ used. This would be used to allocate an output buffer for deflation in a
+ single pass, and so would be called before deflate(). If that first
+ deflate() call is provided the sourceLen input bytes, an output buffer
+ allocated to the size returned by deflateBound(), and the flush value
+ Z_FINISH, then deflate() is guaranteed to return Z_STREAM_END. Note that it
+ is possible for the compressed size to be larger than the value returned by
+ deflateBound() if flush options other than Z_FINISH or Z_NO_FLUSH are used.
delfateBound_z() is the same, but takes and returns a size_t length. Note
that a long is 32 bits on Windows.