mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-28 09:39:53 +00:00
Merge remote-tracking branch 'origin/pr/2795' into development
* origin/pr/2795: Fix uninitialized variable in x509_crt
This commit is contained in:
commit
3f0fc38735
@ -62,6 +62,9 @@ Bugfix
|
|||||||
address-sanitizer and enabling but not using MBEDTLS_ECP_RESTARTABLE.
|
address-sanitizer and enabling but not using MBEDTLS_ECP_RESTARTABLE.
|
||||||
* Fix memory leak in in mpi_miller_rabin(). Contributed by
|
* Fix memory leak in in mpi_miller_rabin(). Contributed by
|
||||||
Jens Wiklander <jens.wiklander@linaro.org> in #2363
|
Jens Wiklander <jens.wiklander@linaro.org> in #2363
|
||||||
|
* Improve code clarity in x509_crt module, removing false-positive
|
||||||
|
uninitialized variable warnings on some recent toolchains (GCC8, etc).
|
||||||
|
Discovered and fixed by Andy Gross (Linaro), #2392.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Replace multiple uses of MD2 by SHA-256 in X.509 test suite. Fixes #821.
|
* Replace multiple uses of MD2 by SHA-256 in X.509 test suite. Fixes #821.
|
||||||
|
@ -2611,15 +2611,13 @@ check_signature:
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*r_parent = parent;
|
||||||
|
*r_signature_is_good = signature_is_good;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( parent != NULL )
|
if( parent == NULL )
|
||||||
{
|
|
||||||
*r_parent = parent;
|
|
||||||
*r_signature_is_good = signature_is_good;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
*r_parent = fallback_parent;
|
*r_parent = fallback_parent;
|
||||||
*r_signature_is_good = fallback_signature_is_good;
|
*r_signature_is_good = fallback_signature_is_good;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user