If you don’t mind moving the whole issue to runtime, then sure. The value of rust is that you catch these issues at compile time so you’re not releasing these sorts of bugs in the first place and aren’t reliant on the capabilities of the users machine to catch it for you.
When is Rust compiler moving away from LLVM, and GCC integration efforts, both written in C++?
That is the thing, there are endless products written in C++ since the 1980's, which no one is going to rewrite in safer languages.
The code will still be incorrect; it's just that you'll know faster.
Honestly it feels at the right abstraction layer too. With Rust you rely on correctness in translation, it is much better to have defense in depth than in breadth.
Rust is already part of defense-in-depth. Despite its memory safety, Rust still turns on ASLR, guard pages, stack probes, etc.