From 41e54ba4f0a0467fc53d71b6ef3bde79941c3bd3 Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Mon, 13 Apr 2026 18:07:16 +0200 Subject: [PATCH] Initialize fullMac in test --- tests/api/test_pkcs12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_pkcs12.c b/tests/api/test_pkcs12.c index 76c59dbfa4..de11cc436a 100644 --- a/tests/api/test_pkcs12.c +++ b/tests/api/test_pkcs12.c @@ -485,7 +485,7 @@ int test_wc_PKCS12_truncated_mac_bypass(void) byte unicodePw[2 * sizeof(password) + 2]; int unicodePwLen = 0; byte macKey[WC_SHA256_DIGEST_SIZE]; - byte fullMac[WC_SHA256_DIGEST_SIZE]; + byte fullMac[WC_SHA256_DIGEST_SIZE] = {0}; Hmac hmac; int hmacInited = 0; word32 i;