News for hackers. Stuff that matters.
Re:What Is Rust's Unsafe? (2019) by adgjlsfhk1 on Monday April 11, 2022 @01:27AM (#30984997)
the key thing here is that if you know that no safe code contains invalid utf8, it is safe to do unsafe indexing into tables that are only sized to deal with valid utf8. as such, this works in practice lead to ub in otherwise correct code, so it should be marked unsafe.

There are no comments on this comment yet.