Security context

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

pistondevelopers/inflate
master @ 5a8c979
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Safety: 2 prior fixes. Scrutinize any change in this area.
src/lib.rs: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix 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: Unsafe pointer-arithmetic loops during DEFLATE stream inflation allowed direct offset manipulation, risking out-of-bounds memory access and memory corruption. Safe indexing must be prioritized over raw pointer offsets.
Memory Safety: Prematurely invoking 'set_len' on a buffer with an invalid run length can expose uninitialized memory. An early exit or strict length check must precede any manual buffer length modification.