mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-09-01 05:01:58 +03:00
Merge pull request #193 from ARMmbed/dev/Patater/fix-snprintf-truncation
psa: test: Fix truncation of message by snprintf
This commit is contained in:
@@ -631,7 +631,7 @@ static int exported_key_sanity_check( psa_key_type_t type, size_t bits,
|
|||||||
else
|
else
|
||||||
#endif /* MBEDTLS_ECP_C */
|
#endif /* MBEDTLS_ECP_C */
|
||||||
{
|
{
|
||||||
char message[40];
|
char message[47];
|
||||||
mbedtls_snprintf( message, sizeof( message ),
|
mbedtls_snprintf( message, sizeof( message ),
|
||||||
"No sanity check for public key type=0x%08lx",
|
"No sanity check for public key type=0x%08lx",
|
||||||
(unsigned long) type );
|
(unsigned long) type );
|
||||||
|
Reference in New Issue
Block a user