Skip to content

Commit 3b00b05

Browse files
committed
initialize test variable regCiphertext
1 parent fb69662 commit 3b00b05

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/api/test_pkcs12.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ int test_wc_PKCS12_encrypted_content_bounds(void)
434434
word32 regPkeySz = 0;
435435
word32 regCertSz = 0;
436436

437+
XMEMSET(regCiphertext, 0, sizeof(regCiphertext));
437438
/* Derive AES-256 key with the same PBKDF2 that DecryptContent uses */
438439
ExpectIntEQ(wc_PBKDF2(regKey, (const byte*)regPassword,
439440
(int)XSTRLEN(regPassword), regSalt, (int)sizeof(regSalt),

0 commit comments

Comments
 (0)