openssl/crypto/evp
Rich Salz b4faea50c3 Use safer sizeof variant in malloc
For a local variable:
        TYPE *p;
Allocations like this are "risky":
        p = OPENSSL_malloc(sizeof(TYPE));
if the type of p changes, and the malloc call isn't updated, you
could get memory corruption.  Instead do this:
        p = OPENSSL_malloc(sizeof(*p));
Also fixed a few memset() calls that I noticed while doing this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-05-04 15:00:13 -04:00
..
bio_b64.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bio_enc.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bio_md.c
bio_ok.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
c_all.c
c_allc.c Big apps cleanup (option-parsing, etc) 2015-04-24 15:26:15 -04:00
c_alld.c Merge OPENSSL_NO_EC{DH,DSA} into OPENSSL_NO_EC 2015-03-11 09:29:37 -04:00
digest.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
e_aes_cbc_hmac_sha1.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:12:39 +01:00
e_aes_cbc_hmac_sha256.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:12:39 +01:00
e_aes.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:12:39 +01:00
e_bf.c
e_camellia.c
e_cast.c
e_des3.c RAND_bytes updates 2015-03-25 12:38:07 +00:00
e_des.c
e_dsa.c
e_idea.c
e_null.c
e_old.c
e_rc2.c
e_rc4_hmac_md5.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:12:39 +01:00
e_rc4.c
e_rc5.c
e_seed.c
e_xcbc_d.c
encode.c Sanity check EVP_EncodeUpdate buffer len 2015-04-30 23:12:39 +01:00
evp_acnf.c
evp_cnf.c
evp_enc.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
evp_err.c
evp_key.c
evp_lib.c make ASN1_OBJECT opaque 2015-03-24 17:35:58 +00:00
evp_locl.h Move some EVP internals to evp_int.h 2015-03-24 12:03:36 +00:00
evp_pbe.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
evp_pkey.c Move some ASN.1 internals to asn1_int.h 2015-03-24 12:03:36 +00:00
m_dss1.c
m_ecdsa.c
m_md2.c
m_md4.c
m_md5.c
m_mdc2.c
m_null.c
m_ripemd.c
m_sha1.c
m_sigver.c Move some EVP internals to evp_int.h 2015-03-24 12:03:36 +00:00
m_wp.c
Makefile make update 2015-04-01 22:31:28 +02:00
names.c
p5_crpt2.c Remove duplicate code. 2015-03-30 22:01:31 +01:00
p5_crpt.c Remove duplicate code. 2015-03-30 22:01:31 +01:00
p_dec.c
p_enc.c
p_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
p_open.c free cleanup almost the finale 2015-04-30 17:57:32 -04:00
p_seal.c RAND_bytes updates 2015-03-25 12:38:07 +00:00
p_sign.c
p_verify.c
pmeth_fn.c free NULL cleanup 2015-03-28 10:54:15 -04:00
pmeth_gn.c free NULL cleanup 2015-03-28 10:54:15 -04:00
pmeth_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00