Remix.run Logo
▲ snemvalts 2 hours ago

Rust only prevents types of bugs where the game crashes because of invalid memory access, or exploits.

▲lifeisloving 2 hours ago | parent | next [-]

Since when are Rust programs unexploitable..

▲Gigachad 2 hours ago | parent | prev [-]

Nah it prevents all kinds of bugs that exploit things like integer overflows, invalid values, etc.

Obviously gameplay bugs are still possible in Rust, but many of them are not.

▲flohofwoe 2 hours ago | parent [-]

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

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

▲aw1621107 an hour ago | parent [-]

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.