Fix overflow in LMS context init

Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
Raef Coles 2022-09-27 13:45:30 +01:00
parent 98c504373c
commit 0b7da1b787
No known key found for this signature in database
GPG key ID: 1AAF1B43DF2086F4

View file

@ -506,7 +506,7 @@ static int get_merkle_path( mbedtls_lms_private_t *ctx,
void mbedtls_lms_init_private( mbedtls_lms_private_t *ctx )
{
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_public_t ) ) ;
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_private_t ) ) ;
}
void mbedtls_lms_free_private( mbedtls_lms_private_t *ctx )