logoalt Hacker News

tptacek • today at 4:54 PM • 1 reply • view on HN

No. Memory safe languages still have integer handling issues, but the consequences are different. In a memory-unsafe language, integer mishandling often nets out to bad copies and memory corruption.


Replies

vlovich123 • today at 5:01 PM

I wouldn’t be sure that a Rust equivalent would be immune because it’s not hard to imagine an underflow/overflow from reaching an unsafe block that’s used for performance (the implicated TLS path would be a hotspot worthy of such a choice).

➕ show 1 reply