1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Let ecdsatest exercise ECParameters_dup() a bit

This currently leaks, which will fixed in a follow-on commit.
This commit is contained in:
tb 2023-05-04 13:49:29 +00:00
parent 5fcb6f2258
commit 48185ea66a

View File

@ -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)