Note: this does not cover all instances, but it will at least compile.
If the broken parts are reached at run time, the program will crash.
I wonder whose stupid idea it was to intentionally(!) make programs segfault when they hit something that *might* be unsafe to use.
Patch taken from http://www.mail-archive.com/openssl-dev@openssl.org/msg22667.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7764 3c298f89-4303-0410-b956-a3cf2f4a3e73