Malloc failures check

Salz, Rich rsalz at
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:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-project mailing list