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