Skip to content

Commit eebe04b

Browse files
Fix length being passed into GetFormattedTime.
1 parent 6f7d8d2 commit eebe04b

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)