Merge pull request #193 from ARMmbed/dev/Patater/fix-snprintf-truncation

psa: test: Fix truncation of message by snprintf
This commit is contained in:
Gilles Peskine 2018-11-08 18:56:58 +01:00 committed by GitHub
commit 9eaab02607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -631,7 +631,7 @@ static int exported_key_sanity_check( psa_key_type_t type, size_t bits,
else
#endif /* MBEDTLS_ECP_C */
{
char message[40];
char message[47];
mbedtls_snprintf( message, sizeof( message ),
"No sanity check for public key type=0x%08lx",
(unsigned long) type );