Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

madler/zlib
develop @ e3dc0a8
4
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Buffer Overflow: 2 prior fixes. Scrutinize any change in this area.
contrib/minizip/miniunz.c: most-fixed (1 issue). Treat as high-risk during review.
4 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Buffer Overflow: Copying gzip extra field data without validating extra_max allows an out-of-bounds write via zmemcpy when processing a crafted stream.
Memory Corruption: An off-by-one error in the table space check (using >= instead of >) permits a heap overflow when building Huffman tables from a malicious compressed stream.
Buffer Overflow: zipOpenNewFileInZip4_64 accepts field lengths exceeding 0xffff, leading to buffer overflows during zip header creation.