logoalt Hacker News

terminalcommand • today at 12:46 PM • 2 replies • view on HN

But even in memory-safe languages, compiler bugs are still an issue. The theory is perfect but the implementation is flawed. In such case once the compiler bugs are found, the software would have to be rewritten to compile. For example an 11 year old memory bug was discovered recently in the rust compiler: https://www.penligent.ai/hackinglabs/rust-borrow-checker-bug....

Memory safe languages are not a silver bullet either.


Replies

dns_snek • today at 6:44 PM

I think we'll have flying cars before we have to start focusing on compiler bugs. Most software is already written in memory safe languages and their vulnerabilities are unrelated to memory safety, they're just plain old logic bugs.

GTP • today at 12:59 PM

Definitely not a silver bullet (consider also that memory management isn'the only source for vulns), but still much better than C/C++.