Security context

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

image-rs/image
main @ 7248641
4
Fixes
2
CVEs
CRITICAL
Peak severity
66.7%
Coverage
Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
src/codecs/avif/decoder.rs: 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.

Denial of Service: Unbounded memory allocations during AVIF plane reshaping can lead to process termination via out-of-memory panics. Ensuring that all decoder pathways enforce resource allocation limits is vital to preventing DoS when handling crafted, high-dimension image inputs.
Denial of Service: Integer overflow panics can occur in YUV plane and RGB buffer size pre-condition calculations. Standardizing on checked multiplication across all color space conversions is necessary to avoid panic-driven denial of service.
Denial of Service: Resampling extremely large source images down to small thumbnails can trigger integer overflows and panics during pixel accumulation. Block size splitting and validated pixel addition are required to keep the accumulator within safe bounds.