Skip to content

Commit 509ad07

Browse files
Merge pull request #5918 from kareem-wolfssl/zd15369
Fix length being passed into GetFormattedTime.
2 parents 6f7d8d2 + eebe04b commit 509ad07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13861,7 +13861,7 @@ int GetAsnTimeString(void* currTime, byte* buf, word32 len)
1386113861

1386213862
XMEMSET(uf_time, 0, sizeof(uf_time));
1386313863
/* GetFormattedTime returns length with null terminator */
13864-
data_len = GetFormattedTime(currTime, uf_time, len);
13864+
data_len = GetFormattedTime(currTime, uf_time, (word32)sizeof(uf_time));
1386513865
if (data_len <= 0) {
1386613866
return ASN_TIME_E;
1386713867
}

0 commit comments

Comments
 (0)