Merge pull request #10276 from padelsbach/asn1-time-chars-check

Add checks for ascii digits in time decode functions
This commit is contained in:
David Garske
2026-05-05 11:38:47 -07:00
committed by GitHub
3 changed files with 67 additions and 25 deletions
+1 -1
View File
@@ -14968,7 +14968,7 @@ int GetTimeString(byte* date, int format, char* buf, int len, int dateLen)
#endif /* WOLFSSL_ASN_TIME_STRING */
/* Check time struct for valid values. Returns 0 for success */
static int ValidateGmtime(struct tm* inTime)
int ValidateGmtime(struct tm* inTime)
{
int ret = 1;
if ((inTime != NULL) &&