openssl/crypto
Matt Caswell 135648bcd0 Fix mem leaks during auto-deinit
Certain functions are automatically called during auto-deinit in order
to deallocate resources. However, if we have never entered a function which
marks lib crypto as inited then they never get called. This can happen if
the user only ever makes use of a small sub-set of functions that don't hit
the auto-init code.

This commit ensures all such resources deallocated by these functions also
init libcrypto when they are initially allocated.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Ben Laurie <ben@openssl.org>
2016-09-08 12:40:19 +01:00
..
aes MIPS assembly pack: adapt it for MIPS[32|64]R6. 2016-09-02 13:33:17 +02:00
asn1 Constify a bit X509_NAME_get_entry 2016-08-23 11:47:22 +02:00
async Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
bf Remove/rename some old files. 2016-06-01 11:29:57 -04:00
bio Fix mem leaks during auto-deinit 2016-09-08 12:40:19 +01:00
blake2
bn Misc BN fixes 2016-09-06 10:42:01 -04:00
buffer Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
camellia
cast
chacha chacha/asm/chacha-ppc.pl: add missing .text directive. 2016-09-08 09:05:59 +02:00
cmac
cms Fix enable-zlib 2016-08-22 09:43:13 +01:00
comp Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
conf Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
ct SCT_set_source resets validation_status 2016-08-23 20:31:03 +01:00
des
dh Constify private key decode. 2016-08-17 12:01:29 +01:00
dsa Constify private key decode. 2016-08-17 12:01:29 +01:00
dso Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
ec Avoid EVP_PKEY_cmp() crash on EC keys without public component 2016-09-07 13:57:48 -04:00
engine Fix mem leaks during auto-deinit 2016-09-08 12:40:19 +01:00
err Fix mem leaks during auto-deinit 2016-09-08 12:40:19 +01:00
evp GH1537: Avoid double-free in the EVP_PKEY API 2016-09-07 09:41:20 -04:00
hmac
idea
include/internal Avoid duplicated code. 2016-08-19 16:52:58 +01:00
kdf Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
lhash
md2
md4
md5
mdc2 Avoid overflow in MDC2_Update() 2016-08-24 14:12:51 +01:00
modes modes/asm/ghash-armv4.pl: improve interoperability with Android NDK. 2016-09-03 10:41:52 +02:00
objects Sanity check an ASN1_object_size result 2016-08-23 00:19:15 +01:00
ocsp Fix an uninitialised read on an error path 2016-08-25 10:11:35 +01:00
pem Limit reads in do_b2i_bio() 2016-08-16 00:27:10 +01:00
perlasm perlasm/ppc-xlate.pl: recognize .type directive. 2016-08-29 23:12:28 +02:00
pkcs7 Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
pkcs12 Don't switch password formats using global state. 2016-08-25 11:42:33 +01:00
poly1305 MIPS assembly pack: adapt it for MIPS[32|64]R6. 2016-09-02 13:33:17 +02:00
rand Fix mem leaks during auto-deinit 2016-09-08 12:40:19 +01:00
rc2
rc4 spelling fixes, just comments and readme. 2016-08-05 19:07:30 -04:00
rc5
ripemd
rsa RT2676: Reject RSA eponent if even or 1 2016-08-22 11:25:12 -04:00
seed
sha MIPS assembly pack: adapt it for MIPS[32|64]R6. 2016-09-02 13:33:17 +02:00
srp Fix mem leak on error path 2016-08-23 00:19:15 +01:00
stack Add some const casts 2016-08-10 09:53:58 -04:00
ts Convert TS_STATUS_INFO* functions to use const getters 2016-08-16 23:36:27 +01:00
txt_db
ui Code cleanup UI 2016-08-31 09:34:16 -04:00
whrlpool
x509 Un-delete still documented X509_STORE_CTX_set_verify 2016-08-24 20:30:45 +01:00
x509v3 Constify some X509_NAME, ASN1 printing code 2016-08-23 11:47:22 +02:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
build.info
c64xpluscpuid.pl
cpt_err.c Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
cryptlib.c
cversion.c
dllmain.c
ebcdic.c
ex_data.c Fix mem leaks during auto-deinit 2016-09-08 12:40:19 +01:00
ia64cpuid.S
init.c Don't try to init dasync internally 2016-08-17 21:34:42 +02:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c Fix some style issues... 2016-08-02 09:59:23 +02:00
mem_dbg.c fix crypto-mdebug build 2016-07-20 12:41:31 +01:00
mem_sec.c
mem.c
mips_arch.h MIPS assembly pack: adapt it for MIPS[32|64]R6. 2016-09-02 13:33:17 +02:00
o_dir.c
o_fips.c
o_fopen.c Fix a few if(, for(, while( inside code. 2016-07-20 07:21:53 -04:00
o_init.c
o_str.c
o_time.c VSI submisson: make better use of item lists in o_time.c 2016-08-04 16:51:39 +02:00
pariscid.pl
ppc_arch.h
ppccap.c Add ecp_nistz256-ppc64 module. 2016-08-29 23:12:32 +02:00
ppccpuid.pl
s390xcap.c
s390xcpuid.S
sparc_arch.h
sparccpuid.S spelling fixes, just comments and readme. 2016-08-05 19:07:30 -04:00
sparcv9cap.c crypto/sparcv9cap.c: add missing declaration. 2016-08-12 10:26:20 +02:00
threads_none.c
threads_pthread.c CRYPTO_atomic_add(): check that the object is lock free 2016-08-24 14:37:48 +01:00
threads_win.c
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl