Security context

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

python/mypy
master @ 2433566
7
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
Actions: most-fixed (1 issue). 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: Integer overflows during string buffer growth and conversions can lead to undersized allocations, resulting in heap memory corruption when writing to the allocated space via memcpy. This represents a severe reliability and potential execution vulnerability in the compiled runtime.
Denial of Service: Untrusted or malformed cache metadata can trigger out-of-bounds reads during deserialization. Missing validations on buffer length inputs can crash the compiler runtime when loading corrupted caching files.
Memory Corruption: Incorrect reference counting of spilled registers during compilation transformations leads to a double-decref of stolen references (e.g. under SetAttr), culminating in double-free vulnerabilities and segmentation faults during compiled-code execution.