diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-04 13:49:30 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-04 13:49:30 +0000 |
commit | 52827d6139b0c6027bda5baecf570164282fdc59 (patch) | |
tree | ad045813a0b078632fdd50bf2593617683b9d28e /regress/lib | |
parent | 49296e8dd210eb39bd890524849f2dbccde1d88d (diff) |
Let ecdsatest exercise ECParameters_dup() a bit
This currently leaks, which will fixed in a follow-on commit.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libcrypto/ecdsa/ecdsatest.c | 5 |
1 files 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) |