From f04e6e87188d1bbebccb94e8ccb9999ca869d659 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 4 Mar 2026 14:46:20 -0600 Subject: [PATCH] tests/api.c and tests/api/test_pkcs7.c: fixes for `CFLAGS="-Og" --enable-all` (PRB-single-flag.txt line 3). --- tests/api.c | 4 ++-- tests/api/test_pkcs7.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index 0cda4e114a..5c3e9383ff 100644 --- a/tests/api.c +++ b/tests/api.c @@ -18879,7 +18879,7 @@ static int test_wolfSSL_d2i_and_i2d_PublicKey_ecc(void) const unsigned char* p; unsigned char *der = NULL; unsigned char *tmp = NULL; - int derLen; + int derLen = -1; unsigned char pub_buf[65]; unsigned char pub_spki_buf[91]; const int pub_len = 65; @@ -18989,7 +18989,7 @@ static int test_wolfSSL_d2i_and_i2d_DSAparams(void) }; int derInLen = sizeof(derIn); byte* derOut = NULL; - int derOutLen; + int derOutLen = -1; byte* p = derIn; /* Check that params can be successfully decoded. */ diff --git a/tests/api/test_pkcs7.c b/tests/api/test_pkcs7.c index 5f3644869f..dab2431fcd 100644 --- a/tests/api/test_pkcs7.c +++ b/tests/api/test_pkcs7.c @@ -3143,7 +3143,7 @@ int test_wc_PKCS7_GetEnvelopedDataKariRid(void) byte rid[256]; byte cms[1024]; XFILE cmsFile = XBADFILE; - int ret; + int ret = -1; word32 ridSz = sizeof(rid); XFILE skiHexFile = XBADFILE; byte skiHex[256];