openssl/crypto/ec
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
..
asm Add ec/asm/ecp_nistz256-sparcv9.pl. 2015-04-21 09:37:44 +02:00
ec2_mult.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ec2_oct.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ec2_smpl.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ec_ameth.c free null cleanup finale 2015-05-01 10:02:07 -04:00
ec_asn1.c free NULL cleanup -- coda 2015-05-01 14:37:16 -04:00
ec_check.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ec_curve.c Add OSSL_NELEM macro. 2015-05-03 12:53:08 +01:00
ec_cvt.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ec_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ec_key.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ec_lcl.h Re-align some comments after running the reformat script. 2015-01-22 09:20:10 +00:00
ec_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ec_mult.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ec_oct.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ec_pmeth.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ec_print.c remove malloc casts 2015-04-28 15:28:14 -04:00
eck_prn.c free null cleanup finale 2015-05-01 10:02:07 -04:00
ecp_mont.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ecp_nist.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ecp_nistp224.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ecp_nistp256.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ecp_nistp521.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ecp_nistputil.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ecp_nistz256_table.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ecp_nistz256.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ecp_oct.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
ecp_smpl.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
Makefile Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00