mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
- mpi_init() and mpi_free() only accept a single argument and do not accept variable arguments anymore. This prevents unexpected memory corruption in a number of use cases.
This commit is contained in:
parent
f968857a82
commit
6c591fab72
11 changed files with 230 additions and 137 deletions
|
|
@ -92,14 +92,18 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
/**
|
||||
* \brief Initialize one or more mpi
|
||||
* \brief Initialize one MPI
|
||||
*
|
||||
* \param X One MPI to initialize.
|
||||
*/
|
||||
void mpi_init( mpi *X, ... );
|
||||
void mpi_init( mpi *X );
|
||||
|
||||
/**
|
||||
* \brief Unallocate one or more mpi
|
||||
* \brief Unallocate one MPI
|
||||
*
|
||||
* \param X One MPI to unallocate.
|
||||
*/
|
||||
void mpi_free( mpi *X, ... );
|
||||
void mpi_free( mpi *X );
|
||||
|
||||
/**
|
||||
* \brief Enlarge to the specified number of limbs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue