openssl/crypto/include/internal
Rich Salz f7edeced4d Add "random malloc failure" tooling
Still needs to be documented, somehow/somewhere.

The env var OPENSSL_MALLOC_FAILURES controls how often malloc/realloc
should fail.  It's a set of fields separated by semicolons.  Each field
is a count and optional percentage (separated by @) which defaults to 100.
If count is zero then it lasts "forever."  For example: 100;@25 means the
first 100 allocations pass, then the rest have a 25% chance of failing
until the program exits or crashes.

If env var OPENSSL_MALLOC_FD parses as a positive integer, a record
of all malloc "shouldfail" tests is written to that file descriptor.
If a malloc will fail, and OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE is not set
(platform specific), then a backtrace will be written to the descriptor
when a malloc fails.  This can be useful because a malloc may fail but
not be checked, and problems will only occur later.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1252)
2017-01-12 11:27:27 -05:00
..
asn1_int.h PSS ASN.1 method 2017-01-08 01:42:46 +00:00
async.h Copyright consolidation 03/10 2016-05-17 14:24:17 -04:00
bn_conf.h.in Copyright consolidation: perl files 2016-04-20 09:45:40 -04:00
bn_dh.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
bn_int.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
bn_srp.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
chacha.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
cryptlib.h Remove an useless definition. 2016-09-17 12:32:37 -04:00
cryptlib_int.h Add "random malloc failure" tooling 2017-01-12 11:27:27 -05:00
dso_conf.h.in Copyright consolidation: perl files 2016-04-20 09:45:40 -04:00
engine.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
err_int.h Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
evp_int.h PSS EVP_PKEY method 2017-01-08 01:42:47 +00:00
md32_common.h Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
objects.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
poly1305.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
rand.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
x509_int.h Add support for reference counting using C11 atomics 2016-11-17 22:02:25 +01:00