News for hackers. Stuff that matters.
Re:Would Rust have prevented Heartbleed? Another look by Rickasaurus on Tuesday March 17, 2015 @05:31PM (#9221665)
What about adding safer checked buffer types as part of the standard library? A fixed buffer for things of "up to this size" where it remembers how big the current thing is.

Seems like it would be a pretty easy problem to fix if you're not playing fast and loose.

Re:Would Rust have prevented Heartbleed? Another look by steveklabnik on Tuesday March 17, 2015 @05:35PM (#9221697)
That's what Vectors, slices, and arrays already do. See that v.len()?