mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Merge remote-tracking branch 'origin/pr/2398' into mbedtls-2.16
* origin/pr/2398: Add ChangeLog entry fix memory leak in mpi_miller_rabin()
This commit is contained in:
commit
adb4fa5921
2 changed files with 4 additions and 1 deletions
|
|
@ -2351,7 +2351,8 @@ static int mpi_miller_rabin( const mbedtls_mpi *X, size_t rounds,
|
|||
}
|
||||
|
||||
if (count++ > 30) {
|
||||
return MBEDTLS_ERR_MPI_NOT_ACCEPTABLE;
|
||||
ret = MBEDTLS_ERR_MPI_NOT_ACCEPTABLE;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
} while ( mbedtls_mpi_cmp_mpi( &A, &W ) >= 0 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue