A good overview of the protections that Rust offers compared to out in the wild C code based on the audit of the git source code. In short: if you write idiomatic Rust, you get a lot of protection.
https://litchipi.github.io/infosec/2023/01/24/git-code-audit-viewed-as-rust-programmer.html
