boringssl/crypto/evp
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
..
algorithm.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
asn1.c Allow PKCS#8 in d2i_AutoPrivateKey. 2014-11-05 00:42:58 +00:00
CMakeLists.txt Rename example_sign to evp_test. 2014-11-05 00:43:09 +00:00
digestsign.c Make EVP_DigestVerifyFinal return only zero or one. 2014-10-28 20:22:46 +00:00
evp_ctx.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
evp_error.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
evp_test.c Rename example_sign to evp_test. 2014-11-05 00:43:09 +00:00
evp.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
internal.h Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_ec_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_ec.c Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
p_hmac_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_hmac.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
p_rsa_asn1.c Add EVP_PKEY_supports_digest. 2014-11-18 22:18:36 +00:00
p_rsa.c RSA_encrypt and RSA_sign_raw aren't the same. 2014-10-09 21:04:07 +00:00
pbkdf.c Inital import. 2014-06-20 13:17:32 -07:00
sign.c Remove remnants of EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. 2014-11-04 00:27:19 +00:00