openssl/crypto
Matt Caswell aec54108ef Fix memory leaks in BIO_dup_chain()
This fixes a memory leak that can occur whilst duplicating a BIO chain if
the call to CRYPTO_dup_ex_data() fails. It also fixes a second memory leak
where if a failure occurs after successfully creating the first BIO in the
chain, then the beginning of the new chain was not freed.

With thanks to the Open Crypto Audit Project for reporting this issue.

Reviewed-by: Stephen Henson <steve@openssl.org>
2015-06-10 10:09:57 +01:00
..
aes Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
asn1 Check ASN1_INTEGER_get for errors. 2015-06-06 13:17:06 +01:00
bf Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
bio Fix memory leaks in BIO_dup_chain() 2015-06-10 10:09:57 +01:00
bn Fix off-by-one error in BN_bn2hex 2015-06-04 09:23:02 +01:00
buffer Replace memset with OPENSSL_clear_free() 2015-06-10 10:09:57 +01:00
camellia Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
cast Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
cmac Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
cms Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
comp Fix -DZLIB build for opaque COMP types 2015-06-09 12:49:50 -04:00
conf No fprintf in the txt_db component 2015-06-09 12:39:08 -04:00
des Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
dh Properly check certificate in case of export ciphers. 2015-06-09 00:46:59 +02:00
dsa Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
dso Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
ec Fix build errors with enable-ec_nistp_64_gcc_128 2015-05-29 12:40:53 +02:00
ecdh Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
ecdsa Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
engine Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
err Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
evp Use CRYPTO_memcmp when comparing authenticators 2015-06-08 14:55:50 +02:00
hmac Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
idea Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
include/internal Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
jpake Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
lhash Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
md2 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
md4 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
md5 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
mdc2 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
modes Use CRYPTO_memcmp when comparing authenticators 2015-06-08 14:55:50 +02:00
objects return correct NID for undefined object 2015-06-08 21:44:56 +01:00
ocsp Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
pem check for error when creating PKCS#8 structure 2015-05-28 17:58:03 +01:00
perlasm Add assembly support for 32-bit iOS. 2015-04-20 15:06:22 +02:00
pkcs7 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
pkcs12 Use CRYPTO_memcmp when comparing authenticators 2015-06-08 14:55:50 +02:00
pqueue Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
rand Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
rc2 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
rc4 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
rc5 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
ripemd Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
rsa Properly check certificate in case of export ciphers. 2015-06-09 00:46:59 +02:00
seed Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
sha Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
srp Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
stack Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
store Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
threads Server side version negotiation rewrite 2015-05-16 09:19:56 +01:00
ts Set error code, no fprintf stderr, on errors. 2015-06-04 18:03:33 -04:00
txt_db No fprintf in the txt_db component 2015-06-09 12:39:08 -04:00
ui Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
whrlpool Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
x509 Use enum for X509_LOOKUP_TYPE 2015-05-28 12:54:27 -04:00
x509v3 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
alphacpuid.pl
arm64cpuid.pl Add assembly support to ios64-cross. 2015-01-23 15:38:41 +01:00
arm_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
armcap.c Add assembly support for 32-bit iOS. 2015-04-20 15:06:22 +02:00
armv4cpuid.pl Add assembly support for 32-bit iOS. 2015-04-20 15:06:22 +02:00
c64xpluscpuid.pl
cpt_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
cryptlib.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
crypto-lib.com Remove remaining Kerberos references 2015-05-13 15:08:10 +01:00
cversion.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
ebcdic.c Appease clang -Wempty-translation-unit 2015-04-04 17:05:49 +02:00
ex_data.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
fips_err.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
fips_ers.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ia64cpuid.S
install-crypto.com Remove remaining Kerberos references 2015-05-13 15:08:10 +01:00
lock.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
LPdir_nyi.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
LPdir_unix.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_vms.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_win.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_win32.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
LPdir_wince.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
Makefile Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
mem.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
mem_clr.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
mem_dbg.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
o_dir.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_dir_test.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_fips.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
o_init.c Dead code cleanup: crypto/*.c, x509v3, demos 2015-02-02 11:08:16 -05:00
o_str.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_time.c Re-align some comments after running the reformat script. 2015-01-22 09:20:10 +00:00
opensslconf.h.in RT3548: Remove unsupported platforms 2014-12-28 01:17:52 -05:00
pariscid.pl
ppc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ppccap.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ppccpuid.pl
s390xcap.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
s390xcpuid.S
sparc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
sparccpuid.S
sparcv9cap.c Dead code cleanup: crypto/*.c, x509v3, demos 2015-02-02 11:08:16 -05:00
thr_id.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
uid.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
vms_rms.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
x86_64cpuid.pl
x86cpuid.pl