logoalt Hacker News

flohofwoe • today at 6:50 AM • 1 reply • view on HN

> ...that exploit things like integer overflows...

AFAIK Rust doesn't check for integer overflow in release builds, so that would still be exploitable.


Replies

aw1621107 • today at 7:10 AM

Rust doesn't check for integer overflow in release builds by default (ignoring the explicitly-checked methods, of course). At least when building with Cargo whoever builds the binary sets overflow behavior.