boringssl/crypto
Adam Langley 69a01608f3 Add malloc failure tests.
This commit fixes a number of crashes caused by malloc failures. They
were found using the -malloc-test=0 option to runner.go which runs tests
many times, causing a different allocation call to fail in each case.

(This test only works on Linux and only looks for crashes caused by
allocation failures, not memory leaks or other errors.)

This is not the complete set of crashes! More can be found by collecting
core dumps from running with -malloc-test=0.

Change-Id: Ia61d19f51e373bccb7bc604642c51e043a74bd83
Reviewed-on: https://boringssl-review.googlesource.com/2320
Reviewed-by: Adam Langley <agl@google.com>
2014-11-19 01:24:46 +00:00
..
aes aesni-x86_64.pl: make ECB subroutine Windows ABI compliant (RT 3552). 2014-11-10 13:45:33 -08:00
asn1 Add malloc failure tests. 2014-11-19 01:24:46 +00:00
base64 Don't use ssize_t in base64_test.c. 2014-10-01 01:07:28 +00:00
bio Add zero copy read and write api for bio pairs. 2014-11-18 14:06:46 -08:00
bn Shush some dead assignments. 2014-11-06 01:34:33 +00:00
buf Don't read past the end of the string in BUF_strndup. 2014-10-20 20:07:02 +00:00
bytestring Fix "integer constant is too large for 'long' type" errors. 2014-10-24 22:12:49 +00:00
chacha Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
cipher Shush some dead assignments. 2014-11-06 01:34:33 +00:00
conf Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
des A bunch of dead assignments. 2014-07-30 00:44:03 +00:00
dh Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
digest Add digest_test with tests for all existing EVP_MDs. 2014-11-06 01:49:03 +00:00
dsa Add misc functions for easier porting. 2014-09-18 22:38:11 +00:00
ec Fix garbage free on malloc failure in ec_wNAF_mul. 2014-11-14 18:47:41 +00:00
ecdh Use BN_bn2bin_padded rather than doing math to figure out leading zeros. 2014-11-10 23:04:52 +00:00
ecdsa Use BN_bn2bin_padded rather than doing math to figure out leading zeros. 2014-11-10 23:04:52 +00:00
engine Add generic OPERATION_NOT_SUPPORTED error code. 2014-10-09 23:55:39 +00:00
err Add malloc failure tests. 2014-11-19 01:24:46 +00:00
evp Add malloc failure tests. 2014-11-19 01:24:46 +00:00
hmac Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
lhash Fix NaCl build. 2014-10-02 22:45:22 +00:00
md4 Readd MD4. 2014-08-26 21:51:48 +00:00
md5 md5-x86_64.pl: work around warning. 2014-11-10 13:45:32 -08:00
modes x86[_64] assembly pack: add Silvermont performance data. 2014-11-10 13:45:32 -08:00
obj Don't export obj_dat.h. 2014-09-02 22:41:28 +00:00
pem Possibly-uninit variable in pem_lib.c. 2014-11-10 13:45:32 -08:00
perlasm perlasm/x86_64-xlate.pl: handle inter-bank movd. 2014-11-10 13:45:32 -08:00
pkcs8 Provide compatibility functions for PKCS#12 parsing. 2014-09-20 00:10:03 +00:00
poly1305 Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
rand Call RtlGenRandom directly in RAND_bytes. 2014-11-05 00:42:07 +00:00
rc4 Use OPENSSL_64_BIT in rc4.c. 2014-10-01 02:06:31 +00:00
rsa Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
sha x86[_64] assembly pack: add Silvermont performance data. 2014-11-10 13:45:32 -08:00
stack Mark all SSL_CIPHERs as const. 2014-08-18 17:55:05 +00:00
x509 Add malloc failure tests. 2014-11-19 01:24:46 +00:00
x509v3 Fix error handling in X509_PURPOSE_add and X509_TRUST_add. 2014-11-06 01:44:43 +00:00
arm_arch.h Add a control to disable the Poly1305 NEON code. 2014-07-31 22:42:15 +00:00
CMakeLists.txt Constant-time utilities. 2014-11-10 13:45:32 -08:00
constant_time_test.c Update constant-time operations. 2014-11-10 13:48:30 -08:00
cpu-arm.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
cpu-intel.c Don't try to setup CPUID if NO_ASM. 2014-09-20 00:09:57 +00:00
cpu-x86_64-asm.pl Inital import. 2014-06-20 13:17:32 -07:00
cpu-x86-asm.pl Use asm directives to protect OPENSSL_cleanse. 2014-07-31 18:49:22 +00:00
crypto_error.c Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
crypto_error.h Add ISC header to a handful of files. 2014-06-26 10:26:42 -07:00
crypto.c Don't try to setup CPUID if NO_ASM. 2014-09-20 00:09:57 +00:00
directory_posix.c _POSIX_C_SOURCE needs to be set to a date, at least on FreeBSD. 2014-09-30 19:15:39 +00:00
directory_win.c Inital import. 2014-06-20 13:17:32 -07:00
directory.h Add visibility rules. 2014-07-31 22:03:11 +00:00
ex_data_impl.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
ex_data.c Don't compare signed vs. unsigned. 2014-10-01 02:17:38 +00:00
header_removed.h Add ISC header to a handful of files. 2014-06-26 10:26:42 -07:00
internal.h Update constant-time operations. 2014-11-10 13:48:30 -08:00
mem.c Fix NaCl build. 2014-10-02 22:45:22 +00:00
thread.c Include Windows.h in some source files. 2014-08-18 11:39:09 -07:00
time_support.c Fix NaCl build. 2014-10-02 22:45:22 +00:00