Re: ...memory constraints... ...70 full copies of 4 different OpenSSL versions...
Funniest thing is, if they only wrote
<pre>
#define SAFE_LIBRARY_memcpy(dest, destMax, src, count) memcpy(dest, src, (destMax) < (count) ? (destMax) : (count))
</pre>
Then they'd be at least immune to piss-poor stack overflow attacks, even if using plain libc.