Memory-safe C code
Memory-safe C code
Posted Nov 16, 2025 0:45 UTC (Sun) by Cyberax (✭ supporter ✭, #52523)In reply to: Memory-safe C code by alx.manpages
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
Macros in C can only buy you safe array access, but they can't prevent use-after-free. Unless you go into full automatic reference counting for all objects (i.e. performance killer). And you can't do really anything about concurrency.
