Re:Git Security Vulnerabilities Announced
by wongarsu on Tuesday January 17, 2023 @05:41PM
(#34420534)
If you identify an area as risky, it's trivial in Rust to do a checked_add or saturating_add. The challenge is obviously identifying this, but having easy library functions anectotally leads to people looking for it in code reviews.
Re:Git Security Vulnerabilities Announced
by kibwen on Tuesday January 17, 2023 @07:57PM
(#34421913)
Indeed, nobody ever said that logic bugs were good, but as a category of flaw it means that integer overflow in Rust isn't particularly interesting compared to all the other innumerable ways to introduce logic bugs. And I say that as someone who wouldn't really mind if the behavior was changed to panic-by-default in release mode.
Can imagine that implementing bounds checking can be costly, when done in software. Wonder if there are any hardware improvements that could reduce risk in this area.