Malloc failures check

Salz, Rich rsalz at akamai.com
Thu Nov 21 10:30:31 UTC 2019


  *   It would be possible to implement a malloc failure feature in the test suite that systematically runs a test many times, failing successive malloc calls.

It’s there; look crypto/mem.c, shouldfail() and FAILTEST.

More detail, from off-list discusson:

    i=0
    while : ; do
           ((i++))
           export MALLOC_FAILURE_CHECKS=${i}@100 openssl foo etc…
           test -f core && echo crashed && exit 1
     done


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-project/attachments/20191121/86ec0046/attachment.html>


More information about the openssl-project mailing list