Just for fun: https://github.com/Speykious/cve-rs "cve-rs allows you to introduce common memory vulnerabilities (such as buffer overflows and segfaults) into your Rust program in a memory safe manner."