Security context

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

retep998/winapi-rs
0.3 @ 5b18299
1
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Safety: 1 prior fix. Scrutinize any change in this area.
src/macros.rs: 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: A critical memory safety risk exists in the definition of COM interface macros. Using mutable receiver references (`&mut self`) instead of shared references (`&self`) can violate Rust's aliasing invariants, enabling multiple mutable aliases to the same underlying interface and resulting in memory corruption or undefined behavior from seemingly safe client code.