Increase MAX_ECC_STRING to include the trailing \0 for longer order strings (in eg. SECP160R1). Note that this now matches the check in wc_EccPublicKeyDecode.

This commit is contained in:
Kareem
2022-05-24 13:20:52 -07:00
parent 03e086a139
commit bcb5ff5ed9

View File

@ -293,7 +293,7 @@ typedef struct ecc_set_type {
} ecc_set_type;
#else
#define MAX_ECC_NAME 16
#define MAX_ECC_STRING ((MAX_ECC_BYTES * 2) + 1)
#define MAX_ECC_STRING ((MAX_ECC_BYTES * 2) + 2)
/* The values are stored as text strings. */
typedef struct ecc_set_type {