Security context

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

google/re2
main @ 972a15c
2
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Buffer Overflow: 1 prior fix. Scrutinize any change in this area.
re2/nfa.cc: 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: Pointer arithmetic with p+1/p-1 can trigger undefined behavior leading to memory corruption in the regex NFA engine.
Buffer Overflow: sprintf with an insufficient bounds check (4 bytes instead of 5) allowed writing past the buffer in CEscapeString.