openssl/crypto/x509
Dr. Stephen Henson 6dcba070a9 Fix X509_NAME decode for malloc failures.
The original X509_NAME decode free code was buggy: this
could result in double free or leaks if a malloc failure
occurred.

Simplify and fix the logic.

Thanks to Guido Vranken for reporting this issue.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1691)
2016-10-11 22:09:31 +01:00
..
build.info
by_dir.c
by_file.c
t_crl.c Constify certificate and CRL time routines. 2016-08-19 18:40:55 +01:00
t_req.c constify X509_REQ_get0_signature() 2016-08-19 12:47:31 +01:00
t_x509.c Constify certificate and CRL time routines. 2016-08-19 18:40:55 +01:00
x509_att.c Constify some ASN1_OBJECT *obj input parameters 2016-08-04 17:02:48 +02:00
x509_cmp.c Add X509_get0_serialNumber() and constify OCSP_cert_to_id() 2016-08-19 12:47:31 +01:00
x509_d2.c
x509_def.c
x509_err.c
x509_ext.c Constify some ASN1_OBJECT *obj input parameters 2016-08-04 17:02:48 +02:00
x509_lcl.h
x509_lu.c Add -Wswitch-enum 2016-09-22 08:36:26 -04:00
x509_obj.c Constify some X509_NAME, ASN1 printing code 2016-08-23 11:47:22 +02:00
x509_r2x.c
x509_req.c constify X509_REQ_get0_signature() 2016-08-19 12:47:31 +01:00
x509_set.c Add X509_getm_notBefore, X509_getm_notAfter 2016-08-21 18:25:23 +01:00
x509_trs.c
x509_txt.c
x509_v3.c Constify some ASN1_OBJECT *obj input parameters 2016-08-04 17:02:48 +02:00
x509_vfy.c Un-delete still documented X509_STORE_CTX_set_verify 2016-08-24 20:30:45 +01:00
x509_vpm.c Revert "Constify code about X509_VERIFY_PARAM" 2016-09-21 10:37:03 -04:00
x509cset.c Constify certificate and CRL time routines. 2016-08-19 18:40:55 +01:00
x509name.c Constify a bit X509_NAME_get_entry 2016-08-23 11:47:22 +02:00
x509rset.c
x509spki.c
x509type.c Constify X509_certificate_type() 2016-08-17 14:59:54 +01:00
x_all.c
x_attrib.c
x_crl.c spelling fixes, just comments and readme. 2016-08-05 19:07:30 -04:00
x_exten.c
x_name.c Fix X509_NAME decode for malloc failures. 2016-10-11 22:09:31 +01:00
x_pubkey.c
x_req.c
x_x509.c Constify X509_get0_signature() 2016-08-17 14:12:55 +01:00
x_x509a.c Constify some inputs buffers 2016-08-23 11:47:22 +02:00