Memory-safe C code
Memory-safe C code
Posted Nov 16, 2025 17:49 UTC (Sun) by mb (subscriber, #50428)In reply to: Memory-safe C code by khim
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
- Improve current compilers and checker tools to catch more cases while keeping the required changes to the code low. This will never bring C safety anywhere near that of safe languages, but it will definitely make it safer.
- Write new code in safe languages only.
- Compile existing code with tools like Fil-C, if performance is less of an issue.
- Rewrite critical parts that directly interact with untrusted data (e.g. complex parsers) in safe languages.
All of this is currently being done or being experimented with.
And I think we need *all* of these things to improve the over all situation without going to unrealistic scenarios like "Rewrite everything in Rust".
