Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
whyever
· 9y ago · 0 comments
Nothing stops you from leaking memory in Rust either, it is considered memory safe, see std::mem::forget. Rust only safes you from use-after-free and double-free.
Comments
[–]
staticassertion
9y ago
And integer out of bounds, and (most) segfaults, and data races, etc
[–]
steveklabnik
9y ago
Notably integer overflow is NOT UB and is checked in debug builds.
[–]
staticassertion
9y ago
Sorry, I should have said array OOB.
[–]
steveklabnik
9y ago
Yeah, it's all good!