Re:Integer Overflow Bug in Boeing 787 Dreamliner
by steveklabnik on Saturday May 02, 2015 @06:26PM
(#9478807)
In Rust, integer overflow is defined behavior, though: https://github.com/rust-lang/rfcs/blob/master/text/0560-inte...
[ Parent
| on HN ]
Re:Integer Overflow Bug in Boeing 787 Dreamliner
by smsm42 on Saturday May 02, 2015 @07:08PM
(#9478910)
True, but as far as I see from this RFC, you have to explicitly check for overflow or run code in debug mode (which of course doesn't help unless your CI includes the one-year-without-reboot test, which would probably do wonders to the production schedules ;). If you thought about it, when writing that code, then you could add the same check in C too! The whole issue is that most people do not make such checks consistently.