openssl/crypto
Benjamin Kaduk 62b0a0dea6 Fix memory leaks in CTLOG_new_from_base64
Move the call to ct_base64_decode(), which allocates, until after
the check for NULL output parameter.

Also place a cap on the number of padding characters used to decrement
the output length -- any more than two '='s is not permitted in a
well-formed base64 text.  Prior to this change, ct_base64_decode() would
return a length of -1 along with allocated storage for an input of
"====".

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3379)
2017-06-09 13:32:29 -04:00
..
aes Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
aria aria/aria.c: address undefined behaviour warning in small-footprint path. 2017-05-26 10:51:16 +02:00
asn1 Fix #340: Parse ASN1_TIME to struct tm 2017-06-08 13:19:13 +01:00
async make error tables const and separate header file 2017-06-07 15:12:03 -04:00
bf Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
bio make error tables const and separate header file 2017-06-07 15:12:03 -04:00
blake2
bn make error tables const and separate header file 2017-06-07 15:12:03 -04:00
buffer make error tables const and separate header file 2017-06-07 15:12:03 -04:00
camellia Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
cast Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
chacha Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
cmac
cms make error tables const and separate header file 2017-06-07 15:12:03 -04:00
comp make error tables const and separate header file 2017-06-07 15:12:03 -04:00
conf make error tables const and separate header file 2017-06-07 15:12:03 -04:00
ct Fix memory leaks in CTLOG_new_from_base64 2017-06-09 13:32:29 -04:00
des Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
dh make error tables const and separate header file 2017-06-07 15:12:03 -04:00
dsa make error tables const and separate header file 2017-06-07 15:12:03 -04:00
dso make error tables const and separate header file 2017-06-07 15:12:03 -04:00
ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
engine make error tables const and separate header file 2017-06-07 15:12:03 -04:00
err make error tables const and separate header file 2017-06-07 15:12:03 -04:00
evp make error tables const and separate header file 2017-06-07 15:12:03 -04:00
hmac
idea Fix gcc-7 warnings. 2017-05-11 19:39:38 +02:00
include/internal ED25519 public key method. 2017-05-30 20:38:20 +01:00
kdf make error tables const and separate header file 2017-06-07 15:12:03 -04:00
lhash Add a lock around the OBJ_NAME table 2017-06-07 11:23:37 -04:00
md2
md4
md5 Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
mdc2
modes modes/ocb128.c: address undefined behaviour warning. 2017-05-26 10:52:11 +02:00
objects make error tables const and separate header file 2017-06-07 15:12:03 -04:00
ocsp make error tables const and separate header file 2017-06-07 15:12:03 -04:00
pem make error tables const and separate header file 2017-06-07 15:12:03 -04:00
perlasm Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
pkcs7 make error tables const and separate header file 2017-06-07 15:12:03 -04:00
pkcs12 make error tables const and separate header file 2017-06-07 15:12:03 -04:00
poly1305 Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
rand make error tables const and separate header file 2017-06-07 15:12:03 -04:00
rc2 Fix gcc-7 warnings. 2017-05-11 19:39:38 +02:00
rc4 Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
rc5 Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
ripemd Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
rsa make error tables const and separate header file 2017-06-07 15:12:03 -04:00
seed
sha sha/asm/keccak1600-armv4.pl: switch to more efficient bit interleaving algorithm. 2017-06-08 20:21:31 +02:00
siphash Fix gcc-7 warnings. 2017-05-11 19:39:38 +02:00
srp Correct some badly formated preprocessor lines 2017-04-25 15:44:48 +02:00
stack
ts make error tables const and separate header file 2017-06-07 15:12:03 -04:00
txt_db
ui make error tables const and separate header file 2017-06-07 15:12:03 -04:00
whrlpool Fix a read off the end of the input buffer 2017-06-08 16:05:52 -04:00
x509 make error tables const and separate header file 2017-06-07 15:12:03 -04:00
x509v3 Fix a bundle of trailing spaces in several files 2017-06-09 12:04:10 -04:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
build.info
c64xpluscpuid.pl
cpt_err.c make error tables const and separate header file 2017-06-07 15:12:03 -04:00
cryptlib.c
cversion.c
dllmain.c
ebcdic.c
ex_data.c Fix ex_data and session_dup issues 2017-06-02 12:11:38 -04:00
ia64cpuid.S
init.c Fix a bundle of trailing spaces in several files 2017-06-09 12:04:10 -04:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_dbg.c Add CRYPTO_mem_leaks_cb 2017-04-24 18:09:01 +02:00
mem_sec.c Tweak sec_mem tests 2017-05-20 20:54:04 -04:00
mem.c
mips_arch.h
o_dir.c
o_fips.c
o_fopen.c
o_init.c
o_str.c Address some -Wold-style-declaration warnings 2017-05-01 14:23:28 -04:00
o_time.c
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
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00