Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>In Rust debug builds, integer overflows crash

That's true with C/C++ compilers too, if you want, using UBSan.



Unsigned integer overflow is not undefined behavior in C++ so won't be caught by UBSan.

Also, UBSan is more overhead than turning on Rust's overflow checking.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: