mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 03:35:35 +00:00
Merge pull request #5683 from paul-elliott-arm/fix_pk_test
Prevent free of uninitialised MPI variables
This commit is contained in:
commit
1c7c5969ea
@ -732,6 +732,8 @@ void pk_rsa_encrypt_decrypt_test( data_t * message, int mod, int radix_P,
|
||||
size_t olen, rlen;
|
||||
|
||||
mbedtls_pk_init( &pk );
|
||||
mbedtls_mpi_init( &N ); mbedtls_mpi_init( &P );
|
||||
mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &E );
|
||||
|
||||
memset( &rnd_info, 0, sizeof( mbedtls_test_rnd_pseudo_info ) );
|
||||
memset( output, 0, sizeof( output ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user