mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
b4faea50c3
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> |
||
---|---|---|
.. | ||
dh192.pem | ||
dh512.pem | ||
dh1024.pem | ||
dh2048.pem | ||
dh4096.pem | ||
dh_ameth.c | ||
dh_asn1.c | ||
dh_check.c | ||
dh_depr.c | ||
dh_err.c | ||
dh_gen.c | ||
dh_kdf.c | ||
dh_key.c | ||
dh_lib.c | ||
dh_pmeth.c | ||
dh_prn.c | ||
dh_rfc5114.c | ||
example | ||
generate | ||
Makefile |