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
Show parent comment
11
u/hegbork Apr 09 '14
If someone does this without credentials proving that they've successfully worked in memory management on a real operating system the code gets immediately rejected in review. Clever memory caching is what every malloc does internally, except that the people who wrote malloc hopefully know what they are doing and the average developer doesn't.
There was an excuse to do this on VAX where function call overhead was big, mallocs inefficient, memory small so fragmentation wasn't a problem and heap overflow exploits weren't invented yet.
Malloc is much slower than your freelist? There are options: