Security context

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

python/typed_ast
master @ 567af09
9
Fixes
2
CVEs
HIGH
Peak severity
55.6%
Coverage
Highlights
Memory Corruption: 5 prior fixes. Scrutinize any change in this area.
ast3/Python/ast.c: most-fixed (6 issues). Treat as high-risk during review.
4 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: Missing bounds checks during child node retrieval within functions like `ast_for_arguments` and `handle_keywordonly_args` can result in high-severity out-of-bounds reads and interpreter crashes.
Memory Safety: Improper reference count management during argument conversion steals ownership early, leading to potential use-after-free conditions in fallback execution paths.
Memory Corruption: Accessing string contents using incorrect types (such as calling `PyBytes_AS_STRING` on `Unicode` objects) leads to critical type confusion and memory corruption during compilation.