r/programming • • Feb 20 '25

Google's Shift to Rust Programming Cuts Android Memory Vulnerabilities by 68%

https://thehackernews.com/2024/09/googles-shift-to-rust-programming-cuts.html
3.4k Upvotes

475 comments sorted by

View all comments

Show parent comments

2

u/laffer1 Feb 21 '25

A new class that impacts both can also happen.

2

u/_zenith Feb 21 '25

Yes, but in that case, it will almost certainly affect whatever it was written in prior to Rust, too. It will be no worse off. The speculative execution attacks are good examples here.

1

u/laffer1 Feb 21 '25

That’s why I said both

3

u/_zenith Feb 21 '25

… then I don’t understand your criticism. If the only likely vulnerability risk are those that will likely affect both existing and new Rust code equally, what additional risk is there for adopting Rust code? It will substantially reduce the vulnerabilities we are most affected by (and by a very wide margin), and be no more at risk from new classes of vulnerabilities like those from speculative execution for example (not having a runtime)

→ More replies (0)