From 86479643a4ba682aaf596782addd915a4922503e Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 14 Nov 2022 20:02:13 +0100 Subject: params_api_test.c: Fix mistake in backported test fix Fixup for e8f1d76b50204d87a0ef7f6879eb1dd507a54368. Reviewed-by: Paul Dale Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/19675) --- test/params_api_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/params_api_test.c b/test/params_api_test.c index 4c243a8..cce957e 100644 --- a/test/params_api_test.c +++ b/test/params_api_test.c @@ -431,7 +431,7 @@ static int test_param_bignum(int n) if (!TEST_true(OSSL_PARAM_set_BN(¶m, b))) goto err; - le_copy(buf, bnbuf, len); + le_copy(buf, bnbuf, sizeof(bnbuf)); if (!TEST_mem_eq(raw_values[n].value, len, buf, len)) goto err; param.data_size = param.return_size; -- cgit v1.1