openssl/crypto/bio
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
..
b_dump.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
b_print.c Clarify logic in BIO_*printf functions 2015-04-30 23:12:39 +01:00
b_sock.c free null cleanup finale 2015-05-01 10:02:07 -04:00
bf_buff.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bf_lbuf.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bf_nbio.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bf_null.c More comment realignment 2015-01-22 09:20:10 +00:00
bio_cb.c BIO_debug_callback: Fix output on 64-bit machines 2015-03-10 12:32:39 +01:00
bio_err.c make errors 2015-03-06 14:06:17 +00:00
bio_lcl.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
bio_lib.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bss_acpt.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bss_bio.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bss_conn.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bss_dgram.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
bss_fd.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
bss_file.c Add OSSL_NELEM macro. 2015-05-03 12:53:08 +01:00
bss_log.c remove malloc casts 2015-04-28 15:28:14 -04:00
bss_mem.c size_t for buffer functions. 2015-02-13 13:50:36 +00:00
bss_null.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
bss_sock.c Dead code removal: #if 0 bio, comp, rand 2015-01-29 21:38:57 -05:00
Makefile Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevant 2015-03-31 20:16:01 +02:00