Merge remote-tracking branch 'origin/mbedtls-2.7' into mbedtls-2.7-restricted
* origin/mbedtls-2.7: Add ChangeLog entry fix memory leak in mpi_miller_rabin()
This commit is contained in:
commit
20b77ecb4a
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,8 @@ Bugfix
|
||||||
* Update test certificates that were about to expire. Reported by
|
* Update test certificates that were about to expire. Reported by
|
||||||
Bernhard M. Wiedemann in #2357.
|
Bernhard M. Wiedemann in #2357.
|
||||||
* Make NV seed test support MBEDTLS_ENTROPY_FORCE_SHA256.
|
* Make NV seed test support MBEDTLS_ENTROPY_FORCE_SHA256.
|
||||||
|
* Fix memory leak in in mpi_miller_rabin(). Contributed by
|
||||||
|
Jens Wiklander <jens.wiklander@linaro.org> in #2363.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Make `make clean` clean all programs always. Fixes #1862.
|
* Make `make clean` clean all programs always. Fixes #1862.
|
||||||
|
|
|
@ -2138,7 +2138,8 @@ static int mpi_miller_rabin( const mbedtls_mpi *X, size_t rounds,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count++ > 30) {
|
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 ||
|
} while ( mbedtls_mpi_cmp_mpi( &A, &W ) >= 0 ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue