Unsafe is dangerous
“Use-after-free (UAF), integer overflows, and out of bounds (OOB) reads/writes comprise 90% of vulnerabilities with OOB being the most common.”
— Jeff Vander Stoep and Chong Zang, Google. “Queue the Hardening Enhancements”
“The software industry has gathered lots of evidence that unsafe code is difficult to write correctly and creates very serious problems.”
“The issues in this list are eliminated by Rust. The unsafe keyword lets them back into your source code.”
“Be careful.”