Highlights
Memory Safety: 2 prior fixes. Scrutinize any change in this area.
miniz_oxide/src/deflate/core.rs: most-fixed (1 issue). Treat as high-risk during review.
3 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.
Memory Safety: Uninitialized memory allocation during decompressor state creation can lead to undefined behavior or information leakage when using custom initialization bypasses. Replacing unsafe structures with zeroed heap allocations prevents uninitialized read vectors.
Memory Safety: The use of direct pointer arithmetic for unaligned writes can lead to out-of-bounds memory corruption. Enforcing safe slicing and explicit bounds checking is critical to preventing buffer overflows during compression operations.
Auth Bypass: Type confusion in API wrappers wrapping internal structs allows mismatching inflate and deflate states, leading to arbitrary memory corruption if stream pointers are cast improperly. Strict state validation must accompany C-compatible entry points.