mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Fix LMS zeroization using wrong sizeof type
Causing a buffer write out of bounds Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
98d6e22050
commit
3982040232
|
|
@ -525,7 +525,7 @@ void mbedtls_lms_free_private( mbedtls_lms_private_t *ctx )
|
|||
mbedtls_free( ctx->ots_public_keys );
|
||||
}
|
||||
|
||||
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_public_t ) );
|
||||
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_private_t ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue