logoalt Hacker News

IshKebab • yesterday at 5:18 PM • 1 reply • view on HN

It absolutely does.

> Our historical data for C and C++ shows a density of closer to 1,000 memory safety vulnerabilities per MLOC. Our Rust code is currently tracking at a density orders of magnitude lower: a more than 1000x reduction.

https://blog.google/security/rust-in-android-move-fast-fix-t...

I await your tediously predictable "1000x reduction isn't eliminated" response.


Replies

uecker • yesterday at 10:09 PM

I think this data is confounded in many ways, even assuming I would trust a blog post. But I also do not really doubt that there is advantage of average Rust code over average C++ code. There are C projects (and I suspect also C++ projects) with a very good track record in terms of memory safety, and they do it somehow magically without Rust. I think that would be a more interesting comparison to study. But ultimately, I also do not think this even a terrible important or interesting questing. It may be much more important to a company that tries to put unhackable advertisement and spyware platform into everybody's pockets. For my own security the fact that I get limited security support for Rust packages is far more concerning than memory safety ever was.

➕ show 1 reply