Security context

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

rust-bitcoin/rust-secp256k1
master @ 9fc86f7
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Memory Safety: 1 prior fix. Scrutinize any change in this area.
secp256k1-sys/src/lib.rs: most-fixed (1 issue). Treat as high-risk during review.
0 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 Safety: Unsound FFI type signatures where mutable pointers are declared as immutable can lead to undefined compiler optimizations, undefined behavior, and potential memory corruption in Rust downstream consumers.
Side-Channel Attack: Non-constant-time comparison of secret buffers (such as checking if a session secret is zero) introduces timing side-channels that can leak information about cryptographic state.