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

5

u/LanverYT Feb 21 '25

Isn't the point of vulnerabilities that you can't really know they are there. If they were so easy to find and do reliable statistics about them they would be fixed in a unit test or code review no?

10

u/Ok-Scheme-913 Feb 21 '25

So if you put a net in the water and catch 20 fish each day, but the next day you only catch 10 fish then you have no extra information whatsoever on the number of fish that year?

2

u/LanverYT Feb 22 '25

good point

9

u/wademealing Feb 21 '25

No.  There are many tools that can point out whole classes of vulnerabilities.

If you live in memory safe languages, you are exempt from whole classes of vulnerability types, however there are still vulnerabilities that exist no matter what the language, some of which can be trivially determined as exploitable.

→ More replies (17)