Highlights
Integer Overflow: 1 prior fix. Scrutinize any change in this area.
src/client.rs: most-fixed (1 issue). 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.
Integer Overflow: The original check `size < length + header_length` could overflow when length and header_length are large, bypassing validation and leading to memory corruption. The fix separates the overflow check, indicating a pattern that may recur in other size computations.
TLS Enforcement Bypass: Without a fail-fast check, wss:// URLs could connect in plaintext when the TLS feature is absent, exposing data in transit. This indicates a missing guard on the connection path that must be enforced consistently.