Add and use OPENSSL_zalloc
authorRich Salz <rsalz@akamai.com>
Tue, 25 Aug 2015 17:25:58 +0000 (13:25 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 3 Sep 2015 02:05:37 +0000 (22:05 -0400)
commitb51bce942023325e727ca4225252d06c49d8f2b7
tree59bbdee7553f9132a86aca17752a9a358a6355e2
parent66e87a9f0990198079bf4d2b3ce87581ad5b6b10
Add and use OPENSSL_zalloc

There are many places (nearly 50) where we malloc and then memset.
Add an OPENSSL_zalloc routine to encapsulate that.
(Missed one conversion; thanks Richard)
Also fixes GH328

Reviewed-by: Richard Levitte <levitte@openssl.org>
45 files changed:
crypto/asn1/ameth_lib.c
crypto/asn1/tasn_new.c
crypto/asn1/x_pkey.c
crypto/bio/bss_acpt.c
crypto/bio/bss_conn.c
crypto/bio/bss_dgram.c
crypto/bn/bn_blind.c
crypto/comp/c_zlib.c
crypto/comp/comp_lib.c
crypto/dso/dso_lib.c
crypto/dso/dso_win32.c
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp521.c
crypto/engine/eng_cryptodev.c
crypto/engine/eng_dyn.c
crypto/engine/eng_lib.c
crypto/evp/evp_enc.c
crypto/evp/pmeth_lib.c
crypto/mem.c
crypto/pqueue/pqueue.c
crypto/rsa/rsa_lib.c
crypto/rsa/rsa_pk1.c
crypto/sec_mem.c
crypto/store/str_lib.c
crypto/store/str_mem.c
crypto/store/str_meth.c
crypto/ts/ts_rsp_sign.c
crypto/ts/ts_verify_ctx.c
crypto/ui/ui_lib.c
crypto/x509/x509_vfy.c
crypto/x509/x509_vpm.c
crypto/x509v3/pcy_tree.c
engines/ccgost/gost_pmeth.c
include/openssl/crypto.h
ssl/bio_ssl.c
ssl/d1_both.c
ssl/d1_lib.c
ssl/s3_lib.c
ssl/ssl_cert.c
ssl/ssl_ciph.c
ssl/ssl_lib.c
ssl/ssl_sess.c
test/ecdsatest.c
test/ssltest.c
util/libeay.num