diff options
author | Adam Langley <agl@google.com> | 2014-11-18 04:26:55 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-11-19 04:24:46 +0300 |
commit | 69a01608f33ab6fe2c3485d94aef1fe9eacf5364 (patch) | |
tree | 82a6e6cd7402e7a237f03d4d8ca6c3ca76c885d7 /include/openssl/evp.h | |
parent | deb52841381fdfa7d73b1855dd36798fbbe7a8bf (diff) |
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>
Diffstat (limited to 'include/openssl/evp.h')
-rw-r--r-- | include/openssl/evp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index a760386e..1e1dc83c 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -829,6 +829,7 @@ struct evp_pkey_st { #define EVP_F_EVP_DigestVerifyInitFromAlgorithm 155 #define EVP_F_EVP_DigestSignAlgorithm 156 #define EVP_F_rsa_digest_verify_init_from_algorithm 157 +#define EVP_F_EVP_PKEY_CTX_dup 158 #define EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE 100 #define EVP_R_UNSUPPORTED_SIGNATURE_TYPE 101 #define EVP_R_INVALID_DIGEST_TYPE 102 |