3 ms·
I think you are greatly exaggerating how hard it is to find invalid memory use in openssl. According to Ted Unangst, all you have to do is turn off the custom
by colin_mccabe 13y ago
I think you are greatly exaggerating how hard it is to find invalid memory use in openssl.
According to Ted Unangst, all you have to do is turn off the custom allocator in openssl to immediately hit a use-after-free bug.
He writes:
"This bug would have been utterly trivial to detect when introduced had the OpenSSL developers bothered testing with a normal malloc (not even a security focused malloc, just one that frees memory every now and again). Instead, it lay dormant for years until I went looking for a way to disable their Heartbleed accelerating custom allocator."
http://www.tedunangst.com/flak/post/analysis-of-openssl-freelist-reuse http://www.tedunangst.com/flak/post/analysis-of-openssl-free...
- gizmo686 13y agoThe bug he is referring to is not in heartbeat, but rather in OpenSSL's use of its own allocator. I am not claiming that it would be difficult to find invalid memory usage in OpenSSL, rather I am claiming that the particular invalid usage that led to heartbleed would be difficult to find, becuase it does not occur under normal circumstances.