Security context

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

koral--/android-gif-drawable
dev @ 26ff795
9
Fixes
2
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Memory Corruption: 2 prior fixes. Scrutinize any change in this area.
android-gif-drawable/src/main/c/decoding.c: most-fixed (4 issues). Treat as high-risk during review.
9 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 Corruption: Improper handling of zero-size or invalid GIF frame allocations in reallocarray leading to potential double-free or use-after-free conditions. These vulnerabilities are exemplified by CVE-2019-11932.
Out-of-bounds Write: Bypassed safety checks due to positive/negative dimension overflows and improper coordinate mapping against original screen dimensions during parsing in DGifGetImageDesc.
Use After Free: Failing to safely nullify and free the rasterBits pointer upon failure to read frame headers, allowing downstream code to read or write to stale memory.