boringssl/crypto/ec
David Benjamin 15e4deb165 d2i: don't update input pointer on failure
(Imported from upstream's 728bcd59d3d41e152aead0d15acc51a8958536d3.)

Actually this one was reported by us, but the commit message doesn't
mention this.

This is slightly modified from upstream's version to fix some problems
noticed in import. Specifically one of d2i_X509_AUX's success paths is
bust and d2i_PrivateKey still updates on one error path. Resolve the
latter by changing both it and d2i_AutoPrivateKey to explicitly hit the
error path on ret == NULL. This lets us remove the NULL check in
d2i_AutoPrivateKey.

We'll want to report the problems back upstream.

Change-Id: Ifcfc965ca6d5ec0a08ac154854bd351cafbaba25
Reviewed-on: https://boringssl-review.googlesource.com/5948
Reviewed-by: Adam Langley <agl@google.com>
2015-09-28 22:15:17 +00:00
..
CMakeLists.txt Move arm_arch.h and fix up lots of include paths. 2015-08-26 01:57:59 +00:00
ec_asn1.c d2i: don't update input pointer on failure 2015-09-28 22:15:17 +00:00
ec_key.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
ec_montgomery.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
ec_test.cc Fix some malloc test crashs. 2015-05-21 18:00:10 +00:00
ec.c Don't use the uint128_t P-256 code under MSAN. 2015-08-20 15:15:30 -07:00
example_mul.c
internal.h Convert reference counts in crypto/ 2015-05-20 19:15:26 +00:00
oct.c Improve error checking of some |BN_CTX_get| callers. 2015-08-07 00:50:17 +00:00
p256-64.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
simple.c Improve error checking of some |BN_CTX_get| callers. 2015-08-07 00:50:17 +00:00
util-64.c
wnaf.c Free tmp_wNAF in all exit paths. 2015-08-07 02:00:35 +00:00