Skip to content

Commit c8188ea

Browse files
authored
Merge pull request #7100 from philljj/zd17237
Fix uninitialized keyUsage in DecodeKeyUsage.
2 parents 6de2751 + 46bf30c commit c8188ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19301,6 +19301,7 @@ static int DecodeKeyUsage(const byte* input, word32 sz, DecodedCert* cert)
1930119301

1930219302
/* Clear dynamic data and set where to store extended key usage. */
1930319303
XMEMSET(dataASN, 0, sizeof(dataASN));
19304+
XMEMSET(keyUsage, 0, sizeof(keyUsage));
1930419305
GetASN_Buffer(&dataASN[KEYUSAGEASN_IDX_STR], keyUsage, &keyUsageSz);
1930519306
/* Parse key usage. */
1930619307
ret = GetASN_Items(keyUsageASN, dataASN, keyUsageASN_Length, 0, input,

0 commit comments

Comments
 (0)