Memory-safe C code
Memory-safe C code
Posted Nov 16, 2025 6:55 UTC (Sun) by alx.manpages (subscriber, #145117)In reply to: Memory-safe C code by Cyberax
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
Agree.
I suspect we could probably add some attributes or qualifiers to get Rust-like semantics that prevent use-after-free.
But even if we only get rid of buffer overflows, that would still be an important change.
BTW,
> Macros in C can only buy you safe array access
Even safe array parameter (thus, pointer) access, after some feature I'm working on.
