git: vendor/ZLIB vendor/ZLIB: Upgrade from 1.3.1 to 1.3.2
Aaron LI
aly at crater.dragonflybsd.org
Mon Mar 30 02:11:41 PDT 2026
commit 5dfc04d288863aa51074719433c54f0a3735c4a8
Author: Aaron LI <aly at aaronly.me>
Date: Mon Mar 30 17:08:54 2026 +0800
vendor/ZLIB: Upgrade from 1.3.1 to 1.3.2
Version 1.3.2 (released on 2026-02-17) has these key updates from 1.3.1:
* Address findings of the 7ASecurity audit of zlib.
- Check for negative lengths in crc32_combine functions.
- Copy only the initialized window contents in inflateCopy.
- Prevent the use of insecure functions without an explicit request.
- Add compressBound_z and deflateBound_z functions for large values.
- Use atomics to build inflate fixed tables once.
- Add --undefined option to ./configure for UBSan checker.
- Copy only the initialized deflate state in deflateCopy.
- Zero inflate state on allocation.
- Add compress_z and uncompress_z functions.
* Complete rewrite of cmake support.
* Remove untgz from contrib.
* Vectorize the CRC-32 calculation on the s390x.
* Remove vstudio projects in lieu of cmake-generated projects.
* Add zipAlreadyThere() to minizip zip.c to help avoid duplicates.
* Add deflateUsed() function to get the used bits in the last byte.
* Fix bug in inflatePrime() for 16-bit ints.
* Add a "G" option to force gzip, disabling transparency in gzread().
* Return all available uncompressed data on error in gzread.c.
* Support non-blocking devices in the gz* routines.
Summary of changes:
contrib/zlib/ChangeLog | 51 ++++++++
contrib/zlib/LICENSE | 2 +-
contrib/zlib/README | 28 ++---
contrib/zlib/compress.c | 44 +++++--
contrib/zlib/crc32.c | 164 ++++++++-----------------
contrib/zlib/deflate.c | 176 +++++++++++++++++----------
contrib/zlib/deflate.h | 8 +-
contrib/zlib/gzguts.h | 64 +++++-----
contrib/zlib/gzlib.c | 103 ++++++++++------
contrib/zlib/gzread.c | 296 ++++++++++++++++++++++++++++------------------
contrib/zlib/gzwrite.c | 267 +++++++++++++++++++++++++----------------
contrib/zlib/infback.c | 87 ++++----------
contrib/zlib/inffast.c | 13 +-
contrib/zlib/inffixed.h | 182 ++++++++++++++--------------
contrib/zlib/inflate.c | 189 ++++++-----------------------
contrib/zlib/inflate.h | 2 +-
contrib/zlib/inftrees.c | 143 ++++++++++++++++++++--
contrib/zlib/inftrees.h | 4 +-
contrib/zlib/trees.c | 28 +++--
contrib/zlib/uncompr.c | 62 ++++++----
contrib/zlib/zlib.3 | 22 ++--
contrib/zlib/zlib.h | 309 +++++++++++++++++++++++++++++++++---------------
contrib/zlib/zlib.pc.in | 1 +
contrib/zlib/zutil.c | 84 +++++++------
contrib/zlib/zutil.h | 99 ++++++++++++++--
25 files changed, 1424 insertions(+), 1004 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5dfc04d288863aa51074719433c54f0a3735c4a8
--
DragonFly BSD source repository
More information about the Commits
mailing list