News for hackers. Stuff that matters.
Re:Git Security Vulnerabilities Announced by travisgriggs on Tuesday January 17, 2023 @05:04PM (#34420050)
Fascinating. Haven't had a chance to do Rust yet, but I think I would change this so that they were consistent. I do embedded, and that kind of "behaves differently in different places" is the worst kind of bug to figure out.
Re:Git Security Vulnerabilities Announced by kibwen on Tuesday January 17, 2023 @06:06PM (#34420808)
> behaves differently in different places

It doesn't behave differently in different places, it differs based on build profile. You test in debug mode, which is where overflows will panic, which makes them quite obvious. If you want to pay the price of overflow checks everywhere in release mode, then you can turn them on there as well (it's not that much of a performance penalty, but that might not be true on embedded...). It's effectively just a compiler flag.