by jcmoyer · 2y ago · 0 comments
The documentation addresses this case specifically: https://doc.rust-lang.org/stable/std/os/unix/io/index.html#p...
"Rust’s safety guarantees only cover what the program itself can do, and not what entities outside the program can do to it. /proc/self/mem is considered to be such an external entity..."
That doesn’t mean that it never happens, but it is a very rare occurrence, not something that Rust programmers deal with regularly.