mbedtls/ChangeLog.d
Gilles Peskine d15c740df6 Fix memory leak in mbedtls_md_setup with HMAC
mbedtls_md_setup() allocates a hash-specific context and then, if
requested, an extra HMAC context. If the second allocation failed, the
hash context was not freed.

Fix this by ensuring that the mbedtls_md_context_t object is always in
a consistent state, in particular, that the md_info field is always
set. For robustness, ensure that the object is in a consistent state
even on errors (other than BAD_INPUT_DATA if the object was not in a
consistent state on entry).

Fix #3486

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-08-19 12:04:56 +02:00
..
00README.md Add guidance on writing and maintaining changelog entries 2020-03-27 20:14:19 +01:00
bugfix_PR3452.txt Use local labels in padlock.c 2020-07-04 01:43:41 +08:00
build_with_only_montgomery_curves.txt Add ChangeLog entry for single-curve build fixes 2020-07-22 03:17:24 +02:00
cmake-install.txt Library files aren't supposed to be executable 2020-07-02 13:19:17 +02:00
do_not_persist_volatile_external_keys.txt Added missing newline in changelog entry 2020-06-17 13:54:18 +02:00
format-signedness.txt Only pass -Wformat-signedness to versions of GCC that support it. 2020-07-03 16:51:14 +08:00
md_setup-leak.txt Fix memory leak in mbedtls_md_setup with HMAC 2020-08-19 12:04:56 +02:00
psa_curve25519_key_support.txt Rewrite changelog for #3425 as requested 2020-07-06 10:52:38 +02:00
psa_curve25519_public_key_import.txt Allow importing Montgomery public keys in PSA Crypto 2020-07-30 15:35:14 +02:00
psa_ecc_dh_macros.txt Add Changelog entry for PSA DH/ECC Macros rename 2020-07-02 17:00:06 +01:00
x509write_csr_heap_alloc.txt Revise comments for x509write_csr_der_internal 2020-07-08 18:32:47 +00:00