aboutsummaryrefslogtreecommitdiff
path: root/crypto/ecdh_extra
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2023-02-04 19:45:04 -0500
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-06 21:33:21 +0000
commitf7d37fba96e5640186b31ccb834bde98102d6ac7 (patch)
treec0fd17593acc1b5cd243789eede0e2132f949e18 /crypto/ecdh_extra
parent5e356a8a9a28bd6541ba360b47f69628e13bb534 (diff)
downloadboringssl-f7d37fba96e5640186b31ccb834bde98102d6ac7.zip
boringssl-f7d37fba96e5640186b31ccb834bde98102d6ac7.tar.gz
boringssl-f7d37fba96e5640186b31ccb834bde98102d6ac7.tar.bz2
Fix various malloc failure paths.
Caught by running malloc failure tests on unit tests. Bug: 563 Change-Id: Ic0167ef346a282dc8b5a26a1cedafced7fef9ed0 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/56927 Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: Bob Beck <bbe@google.com>
Diffstat (limited to 'crypto/ecdh_extra')
-rw-r--r--crypto/ecdh_extra/ecdh_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ecdh_extra/ecdh_test.cc b/crypto/ecdh_extra/ecdh_test.cc
index 4b88754..3948525 100644
--- a/crypto/ecdh_extra/ecdh_test.cc
+++ b/crypto/ecdh_extra/ecdh_test.cc
@@ -274,6 +274,7 @@ TEST(ECDHTest, GroupMismatch) {
}
bssl::UniquePtr<EC_KEY> key(EC_KEY_new());
+ ASSERT_TRUE(key);
ASSERT_TRUE(EC_KEY_set_group(key.get(), a.get()));
ASSERT_TRUE(EC_KEY_generate_key(key.get()));