mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-01 15:52:10 +02:00
In mbedtls_x509_string_to_names() we were not checking for allocation failures. An allocation failure would lead to a memcpy() to a null pointer address. Fix this by checking the result of the call to mbedtls_calloc() and returning MBEDTLS_ERR_X509_ALLOC_FAILED in the error case. Signed-off-by: David Horstmann <david.horstmann@arm.com>
24 KiB
24 KiB