|
|
Log in / Subscribe / Register

Memory-safe C code

Memory-safe C code

Posted Nov 17, 2025 13:16 UTC (Mon) by plugwash (subscriber, #29694)
In reply to: Memory-safe C code by alx.manpages
Parent article: Rust in Android: move fast and fix things (Google Security Blog)

> About safety and pointers, I think it's not only possible, but easy. - Make sure all pointers have a provenance.

Provenance alone is insufficient, that a pointer was valid at some time in the past does not mean it is still valid now.


to post comments

Memory-safe C code

Posted Nov 17, 2025 13:22 UTC (Mon) by alx.manpages (subscriber, #145117) [Link]

I'm aware of that. I said previously that I intend to resolve buffer-overflows, not use-after-free.

While both are connected, they're different, and the solutions need to be different. It's quite easy to remove buffer overflows in C, but it's more complex to resolve use-after-free bugs.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds