Security context

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

aio-libs/multidict
master @ eece5fb
6
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Denial of Service: 5 prior fixes. Scrutinize any change in this area.
multidict/_multilib/hashtable.h: most-fixed (3 issues). 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 Corruption: Incorrect pointer math during hash table compaction in `_md_shrink` allowed heap corruption or segmentation faults. Future modifications to the table compaction or resizing algorithms must ensure pointer arithmetic limits are strictly verified.
Denial of Service: Reference leaks in the `md_pop_one` identity return path and pointer logic failures in `md_clear` caused cumulative memory leaks during dictionary modifications, exposing applications to memory exhaustion.
Denial of Service: Transient keyword dictionaries allocated in `IStr_New` were leaked during case-insensitive string instantiation, creating a denial of service risk under sustained header-parsing workloads.