Re:Deciding to rewrite getaddrinfo in rust
by pcwalton on Tuesday February 23, 2016 @10:53PM
(#11164444)
> Logic bugs. Failure to correctly adapt imperative algorithms while still satisfying the constraint checkers.
Oh, also: If you're implying that Rust's ownership discipline can create security bugs where there were none before, I consider that a real stretch. I'd need to see an actual bug, or at least a bug concept, that Rust's borrowing/ownership rules create before accepting this.
Re:Deciding to rewrite getaddrinfo in rust
by pcwalton on Tuesday February 23, 2016 @07:56PM
(#11163670)
> Not all security bugs are related to memory. Many are related to improperly written algorithms (most crypto attacks), or improperly designed requirements (TLSv1).
Nobody is saying that Rust eliminates all security bugs. Just a huge number of the most common ones.
> Does Rust automatically zero out newly allocated memory? Honest question, I don't know the answer.
Yes.
Re:Deciding to rewrite getaddrinfo in rust
by Manishearth on Tuesday February 23, 2016 @09:29PM
(#11164109)
> Not all security bugs are related to memory.
This is a problem that will be there equally in all languages
Perhaps less so in languages with a better type system, but that doesn't affect Rust since there aren't any _systems_ languages with a better type system.
Not all security bugs are related to memory. Many are related to improperly written algorithms (most crypto attacks), or improperly designed requirements (TLSv1).
Even Heartbleed was primarily due to a logic bug (trusting tainted data) instead of an outright memory ownership bug.
Does Rust automatically zero out newly allocated memory? Honest question, I don't know the answer.