openssl/crypto/x509v3
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
..
ext_dat.h more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
Makefile
pcy_cache.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_data.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_int.h
pcy_lib.c
pcy_map.c
pcy_node.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
pcy_tree.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
tabtest.c Add OSSL_NELEM macro. 2015-05-03 12:53:08 +01:00
v3_addr.c
v3_akey.c
v3_akeya.c
v3_alt.c
v3_asid.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_bcons.c
v3_bitst.c
v3_conf.c free null cleanup finale 2015-05-01 10:02:07 -04:00
v3_cpols.c
v3_crld.c free NULL cleanup -- coda 2015-05-01 14:37:16 -04:00
v3_enum.c
v3_extku.c
v3_genn.c
v3_ia5.c
v3_info.c
v3_int.c
v3_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_ncons.c free cleanup 12 2015-04-30 18:10:52 -04:00
v3_pci.c free NULL cleanup 8 2015-04-30 11:31:07 -04:00
v3_pcia.c
v3_pcons.c
v3_pku.c
v3_pmaps.c
v3_prn.c free null cleanup finale 2015-05-01 10:02:07 -04:00
v3_purp.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_scts.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3_skey.c
v3_sxnet.c
v3_utl.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
v3conf.c
v3err.c
v3prin.c