r/programming • • Apr 09 '14
Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"
[deleted] — view deleted post
2.0k
Upvotes
r/programming • • Apr 09 '14
[deleted] — view deleted post
View all comments
1
u/looneysquash Apr 09 '14
I'm not defending OpenSSL in general. I don't know enough about it's internals to comment on it.
But caching memory allocated by malloc() is a pretty common technique. It's not an unreasonable thing to do, and it does not automatically make someone an unreasonable developer.
Doing something like that unconditionally is usually better than doing it conditionally. Maybe some platform has a really fast malloc and it's not necessary, but if you have two code paths, then you have two code paths to debug. (In this case apparently they did support both ways, but the one that wasn't used unsurprisingly didn't work.)