2
0
mirror of https://github.com/openssl/openssl.git synced 2025-03-07 19:38:33 +08:00
openssl/crypto
Matt Caswell b3895f42a9 Remove the CRYPTO_mem_leaks adjustment for the BIO
CRYPTO_mem_leaks attempts to adjust the count of bytes leaks to not
include the BIO that is being used to print the results out. However this
does not work properly. In all internal cases we switch off recording
the memory allocation during creation of the BIO so it makes no difference.
In other cases if the BIO allocates any additional memory during
construction then the adjustment will be wrong anyway. It also skips over
the BIO memory during print_leak anyway, so the BIO memory is never
added into the total. In other words this was broken in lots of ways and
has been since it was first added.

The simplest solution is just to make it the documented behaviour that
you must turn off memory logging when creating the BIO, and remove all
the adjustment stuff completely. The adjustment code was only ever in
master and never made it to a release branch so there is no loss of
functionality.

This commit also fixes a compilation failure when using
enable-crypto-mdebug.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-03-31 00:12:47 +01:00
..
aes Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
asn1 Fix buffer overrun in ASN1_parse(). 2016-03-30 20:28:44 +01:00
async Fix memory leak where fdlookup linked list is not freed during 2016-03-21 16:57:34 +00:00
bf Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
bio Fix pointer size issues on VMS 2016-03-30 20:25:08 +02:00
blake2 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
bn Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
buffer Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
camellia Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
cast Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
chacha Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
cmac Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
cms Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
comp Fix the zlib config option 2016-03-29 23:57:25 +01:00
conf Move dso.h to internal 2016-03-23 09:12:11 -04:00
ct Removed unused fields of CT_POLICY_EVAL_CTX 2016-03-22 21:58:04 -04:00
des Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
dh Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
dsa Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
dso VMS: update the properties of symbol search 2016-03-23 19:58:12 +01:00
ec RT 4393: Call EC_GROUP_order_bits in priv2opt. 2016-03-29 20:03:48 +02:00
engine Move dso.h to internal 2016-03-23 09:12:11 -04:00
err Fix a big leak when using stack-allocated BIO items. 2016-03-29 17:40:54 +01:00
evp Make BIO opaque 2016-03-29 17:40:54 +01:00
hmac Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
idea Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
include/internal Remove #error from include files. 2016-03-20 19:48:36 -04:00
kdf Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
lhash Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
md2 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
md4 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
md5 Build system: VC-WIN64I fixups. 2016-03-21 11:44:27 +01:00
mdc2 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
modes Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
objects Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
ocsp Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
pem Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
perlasm
pkcs7 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
pkcs12 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
poly1305 poly1305/asm/poly1305-x86.pl: don't loose 59-th bit. 2016-03-29 09:55:43 +02:00
rand Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
rc2 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
rc4 Build system: VC-WIN64I fixups. 2016-03-21 11:44:27 +01:00
rc5 Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
ripemd Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
rsa Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
seed crypto/seed: add small-footprint path. 2016-03-29 09:53:51 +02:00
sha Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
srp Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
stack Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
ts Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
txt_db Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
ui Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
whrlpool Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
x509 Remove X509_PUBKEY lock. 2016-03-30 14:01:45 +01:00
x509v3 Make X509_PUBKEY opaque 2016-03-22 15:28:11 +00:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
build.info Break out DllMain from crypto/cryptlib.c and use it in shared libs only 2016-03-30 11:22:42 +02:00
c64xpluscpuid.pl
cpt_err.c
cryptlib.c Break out DllMain from crypto/cryptlib.c and use it in shared libs only 2016-03-30 11:22:42 +02:00
cversion.c
dllmain.c Break out DllMain from crypto/cryptlib.c and use it in shared libs only 2016-03-30 11:22:42 +02:00
ebcdic.c
ex_data.c Fix error code 2016-03-23 08:15:55 -04:00
fips_err.h
fips_ers.c
ia64cpuid.S
init.c Fix no-sock 2016-03-21 16:33:59 +00:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
Makefile.in Remove the remainder of util/mk1mf.pl and companion scripts 2016-03-21 11:02:00 +01:00
mem_clr.c
mem_dbg.c Remove the CRYPTO_mem_leaks adjustment for the BIO 2016-03-31 00:12:47 +01:00
mem_sec.c
mem.c
o_dir.c
o_fips.c
o_init.c
o_str.c
o_time.c Remove Netware and OS/2 2016-03-17 17:06:57 -04:00
pariscid.pl
ppc_arch.h
ppccap.c
ppccpuid.pl
s390xcap.c
s390xcpuid.S
sparc_arch.h
sparccpuid.S
sparcv9cap.c
threads_none.c
threads_pthread.c
threads_win.c Fix return type for CRYPTO_THREAD_run_once 2016-03-09 20:42:30 -05:00
uid.c Remove Netware and OS/2 2016-03-17 17:06:57 -04:00
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl