News for hackers. Stuff that matters.
Re:What Is Rust's Unsafe? (2019) by seba_dos1 on Sunday April 10, 2022 @03:12PM (#30980618)
I'm not convinced that it's a great use of Rust's `unsafe`, but since you want an example... dealing with voltage regulators maybe? Where an invalid value put into some register could fry your hardware? There's a ton of such cases in embedded.
Re:What Is Rust's Unsafe? (2019) by oconnor663 on Sunday April 10, 2022 @04:37PM (#30981453)
You could probably make the case that any function that might physically destroy your memory is memory unsafe :)