History log of /netbsd-src/common/dist/zlib/trees.c (Results 1 – 7 of 7)
Revision Date Author Comments
# 96c32821 22-Sep-2024 christos <christos@NetBSD.org>

Merge conflicts between 1.2.13 and 1.3.1


# 3b1253e8 15-Oct-2022 christos <christos@NetBSD.org>

merge conflicts between 1.2.10 and 1.2.13


# 0362f707 24-Mar-2022 wiz <wiz@NetBSD.org>

zlib: Fix a bug that can crash deflate on some input when using Z_FIXED.

https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531

This bug was reported by Danilo Ramos of Eide

zlib: Fix a bug that can crash deflate on some input when using Z_FIXED.

https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531

This bug was reported by Danilo Ramos of Eideticom, Inc. It has
lain in wait 13 years before being found! The bug was introduced
in zlib 1.2.2.2, with the addition of the Z_FIXED option. That
option forces the use of fixed Huffman codes. For rare inputs with
a large number of distant matches, the pending buffer into which
the compressed data is written can overwrite the distance symbol
table which it overlays. That results in corrupted output due to
invalid distances, and can result in out-of-bound accesses,
crashing the application.

The fix here combines the distance buffer and literal/length
buffers into a single symbol buffer. Now three bytes of pending
buffer space are opened up for each literal or length/distance
pair consumed, instead of the previous two bytes. This assures
that the pending buffer cannot overwrite the symbol table, since
the maximum fixed code compressed length/distance is 31 bits, and
since there are four bytes of pending space for every three bytes
of symbol space.

show more ...


# 6db8c6e9 10-Jan-2017 christos <christos@NetBSD.org>

merge conflicts


# b85ba082 27-Jan-2006 christos <christos@NetBSD.org>

Sprinkle __UNCONST and fix some casts to make this pass WARNS=4
Note, that we cannot fix this properly because it will break the zlib.h API.


# a1f9f4c0 16-Jan-2006 christos <christos@NetBSD.org>

change DEBUG to ZLIB_DEBUG.


# aaf4ece6 14-Jan-2006 christos <christos@NetBSD.org>

from www.zlib.net