We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fb8f5f commit cfd93b1Copy full SHA for cfd93b1
1 file changed
tests/api.c
@@ -15772,11 +15772,13 @@ static int test_wc_PKCS7_EncodeSignedData(void)
15772
{
15773
int signedSz = 0, i;
15774
encodeSignedDataStream strm;
15775
- int numberOfChunkSizes = 4;
15776
- word32 chunkSizes[] = { 4080, 4096, 5000, 9999 };
+ static const int numberOfChunkSizes = 4;
+ static const word32 chunkSizes[] = { 4080, 4096, 5000, 9999 };
15777
/* chunkSizes were chosen to test around the default 4096 octet string
15778
* size used in pkcs7.c */
15779
15780
+ XMEMSET(&strm, 0, sizeof(strm));
15781
+
15782
ExpectNotNull(pkcs7 = wc_PKCS7_New(HEAP_HINT, testDevId));
15783
ExpectIntEQ(wc_PKCS7_Init(pkcs7, HEAP_HINT, INVALID_DEVID), 0);
15784
0 commit comments