Security context

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

rust-bakery/nom
main @ 51c3c4e
10
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Denial of Service: 7 prior fixes. Scrutinize any change in this area.
src/multi.rs: most-fixed (2 issues). Treat as high-risk during review.
2 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: Integer overflows during input size calculations in multi-combinator macros can trigger panics, crashing parser threads and causing Denial of Service. This pattern has repeatedly appeared in multiple parser combinator macros.
Denial of Service: Sequence parser macros and parsing helpers like the `do_parse!` macro can suffer from integer overflow panics when computing combined token sizes from incomplete streams.
Memory Corruption: Unsafe handling of string allocations using `String::from_utf8_unchecked` can result in undefined behavior and memory corruption when processing malformed or malicious input byte sequences.