Skip to content

[pull] develop from madler:develop#3

Open
pull[bot] wants to merge 659 commits into
bazelregistry:developfrom
madler:develop
Open

[pull] develop from madler:develop#3
pull[bot] wants to merge 659 commits into
bazelregistry:developfrom
madler:develop

Conversation

@pull

@pull pull Bot commented Aug 15, 2023

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added the ⤵️ pull label Aug 15, 2023
madler and others added 29 commits December 6, 2025 17:39
The error is recorded, and will be detected by the application
after all of the uncompressed data has been consumed and then one
more call is made to read data. The error is available immediately
from gzerror() if the application would like to know earlier.
Interim version for an audit.
Though zlib.h says that len2 must be non-negative, this avoids the
possibility of an accidental infinite loop.
To avoid the propagation and possible disclosure of uninitialized
memory contents.
Point to a modern, well-supported implementation, for use when the
compiler chain in use does not provide those functions, and a
secure alternative to sprintf/vsprintf for the gz functions is
desired.
ZLIB_INSECURE must be defined in order to compile code that uses
the insecure functions vsprintf() or sprintf(). This would occur
only if the standard vsnprintf() or snprintf() functions are not
available. Providing the --insecure option to ./configure will
define ZLIB_INSECURE. A flag is added to zlibCompileFlags() to
indicate that gzprintf() is not implemented due to the need for
the use of an insecure function, but ZLIB_INSECURE was not
defined.
These take and return size_t integers, instead of unsigned longs,
for those platforms with 32-bit longs. This commit also assures
that overflows of either integer type results in the maximum value
for that type, instead of wrapping to small values.
This moves the once code from crc32.c to zutil.c, and uses it also
for building the inflate fixed tables when BUILDFIXED is defined.
The fixed tables are now housed in inftrees.c, shared by inflate.c
and infback.c. The once() function is now external, and so is
renamed to z_once() to avoid name collisions.

If either BUILDFIXED or DYNAMIC_CRC_TABLE is defined, and atomics
are not available, then a warning is issued noting that zlib is not
thread-safe.
To avoid the propagation and possible disclosure of uninitialized
memory contents.
To further guard against the propagation of uninitialized memory.
Provide size_t arguments for Windows, on which a long is 32 bits.
Vollstrecker and others added 30 commits May 31, 2026 23:20
Adding to NULL is undefined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.