boringssl/crypto/evp
David Benjamin c5be327ef9 Tidy up EVP_PKEY_CTX_dup and fix malloc error crash.
If copy fails, we shouldn't call cleanup. Also remove some pointless
NULL checks after EVP_PKEY_up_ref.

See also upstream's 748cb9a17f4f2b77aad816cf658cd4025dc847ee.

Change-Id: I2acb6892cde1ab662ca6a620d87179f9be609cba
Reviewed-on: https://boringssl-review.googlesource.com/13830
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-02-16 23:24:53 +00:00
..
CMakeLists.txt Pull EVP_PKEY print hooks out of the main method table. 2016-02-26 22:40:44 +00:00
digestsign.c Don't default to SHA-1 in |EVP_DigestSignInit|/|EVP_DigestVerifyInit|. 2015-10-26 21:26:51 +00:00
evp_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_ctx.c Tidy up EVP_PKEY_CTX_dup and fix malloc error crash. 2017-02-16 23:24:53 +00:00
evp_extra_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_test.cc Import RSA decryption tests from upstream. 2017-01-04 01:47:53 +00:00
evp_tests.txt Import RSA decryption tests from upstream. 2017-01-04 01:47:53 +00:00
evp.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
internal.h Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_dsa_asn1.c Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_ec_asn1.c Fix memory leak on invalid ecPublicKey parameters. 2016-04-15 19:43:26 +00:00
p_ec.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p_rsa_asn1.c Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_rsa.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
print.c Use C99 for size_t loops. 2016-09-12 19:44:24 +00:00
sign.c