From 48185ea66a1c7a7267ac8e9df330ea60c96ff82d Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 4 May 2023 13:49:29 +0000 Subject: [PATCH] Let ecdsatest exercise ECParameters_dup() a bit This currently leaks, which will fixed in a follow-on commit. --- regress/lib/libcrypto/ecdsa/ecdsatest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/lib/libcrypto/ecdsa/ecdsatest.c b/regress/lib/libcrypto/ecdsa/ecdsatest.c index 5f3edc5b2b1..bc908ce1f57 100644 --- a/regress/lib/libcrypto/ecdsa/ecdsatest.c +++ b/regress/lib/libcrypto/ecdsa/ecdsatest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdsatest.c,v 1.15 2023/05/04 13:41:20 tb Exp $ */ +/* $OpenBSD: ecdsatest.c,v 1.16 2023/05/04 13:49:29 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -154,7 +154,8 @@ test_builtin(void) goto err; } - if ((wrong_eckey = EC_KEY_new()) == NULL) + /* Exercise ECParameters_dup() and let ASAN test for leaks. */ + if ((wrong_eckey = ECParameters_dup(key)) == NULL) goto err; group = EC_GROUP_new_by_curve_name(nid); if (group == NULL) -- 2.20.1