4 ms·
Heartbleed is possibly in go, rust, java... pretty much any usable language. The bug wasn't in the language used it was in the human using it. http://www.tedun
by ksherlock 10y ago
Heartbleed is possibly in go, rust, java... pretty much any usable language. The bug wasn't in the language used it was in the human using it.
http://www.tedunangst.com/flak/post/heartbleed-in-rust http://www.tedunangst.com/flak/post/heartbleed-in-rust
- oconnor663 10y agoI think that oversimplifies the ways that Rust (and Java and Go) are safer than C and C++. Of course in any language, the code that handles a buffer can accidentally send that buffer to someone it shouldn't. The problem with unsafe code, though, is that mistakes anywhere in your program can leak the contents of any buffer. Languages that make unsafe code rare are much less exposed to that sort of chaos. This was the case here. An unsafe parser leaked memory that had nothing to do with what it was parsing. Related: https://tonyarcieri.com/would-rust-have-prevented-heartbleed-another-look https://tonyarcieri.com/would-rust-have-prevented-heartbleed...