Myths and Legends about Integer Overflow in Rust


#1

The status of detecting and avoiding integer overflow in Rust changed several times in the lead up to the 1.0.0 release last year. That fluid situation means there’s still quite a bit of confusion about exactly how overflow is handled and mitigated, and what the consequences are. So, I wrote a blog post to hopefully clarify!


#2

The reason shrink-wrapping doesn’t work the way you expect it to is https://llvm.org/bugs/show_bug.cgi?id=25614; the version of LLVM Rust is using definitely supports shrink-wrapping on x86.


#3

And the Reddit thread:


#4

Thanks, I corrected that inaccuracy.