Skip to content

Commit

Permalink
asn: Increase sizes of buffers to fix overflow error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dbahrdt committed Jan 19, 2021
1 parent 9547784 commit a0c4fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfssl/wolfcrypt/asn.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ enum ASN_Tags {
ASN_CONTEXT_SPECIFIC = 0x80,
};

#define ASN_UTC_TIME_SIZE 14
#define ASN_UTC_TIME_SIZE 68
#define ASN_GENERALIZED_TIME_SIZE 16
#define ASN_GENERALIZED_TIME_MAX 68

Expand Down Expand Up @@ -372,7 +372,7 @@ enum Misc_ASN {
#if defined(OPENSSL_ALL) || defined(WOLFSSL_MYSQL_COMPATIBLE) || \
defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) || \
defined(OPENSSL_EXTRA) || defined(HAVE_PKCS7)
MAX_TIME_STRING_SZ = 25, /* Max length of formatted time string */
MAX_TIME_STRING_SZ = 79, /* Max length of formatted time string */
#endif

PKCS5_SALT_SZ = 8,
Expand Down

0 comments on commit a0c4fec

Please sign in to comment.