Security context

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

python-lz4/python-lz4
master @ 029f365
2
Fixes
0
CVEs
MEDIUM
Peak severity
0.0%
Coverage
Highlights
Denial of Service: 1 prior fix. Scrutinize any change in this area.
lz4/frame/_frame.c: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Integer Overflow: Signed integer tracking of buffer sizes can allow buffer allocations larger than 2GB to overflow, leading to negative-size calculations during memory allocation. This can result in application crashes or improper memory allocations inside PyMem_Malloc.
Denial of Service: Failure to release allocated memory blocks on decompression error paths leads to progressive memory leakage. Over time, processing malformed compressed frames can exhaust system memory resources and trigger a Denial of Service.