openssl/test
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
..
ocsp-tests
smime-certs
bctest
bctest.com
bftest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
bntest.c Use BN_ULONG format. 2015-05-01 17:46:17 +01:00
bntest.com
CAss.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
CAssdh.cnf
CAssdsa.cnf
CAssrsa.cnf
casttest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
CAtsa.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
clean_test.com
cms-examples.pl
cms-test.pl Fix ECDH detection, add ECDH keyid test. 2015-04-10 18:51:52 +01:00
constant_time_test.c more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
destest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
dhtest.c more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
dsatest.c free NULL cleanup 7 2015-04-30 21:37:06 -04:00
dummytest.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ecdhtest.c free null cleanup finale 2015-05-01 10:02:07 -04:00
ecdsatest.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
ectest.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
enginetest.c free NULL cleanup 11 2015-05-01 10:15:18 -04:00
evp_extra_test.c free null cleanup finale 2015-05-01 10:02:07 -04:00
evp_test.c Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
evptests.txt Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
exptest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
gost2814789test.c more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
heartbeat_test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
hmactest.c Code style: space after 'if' 2015-04-16 13:44:59 -04:00
ideatest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
igetest.c more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
jpaketest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
Makefile Use safer sizeof variant in malloc 2015-05-04 15:00:13 -04:00
maketests.com Catch up the VMS build. 2015-03-05 18:20:06 +01:00
md2test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
md4test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
md5test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
mdc2test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
methtest.c More comment realignment 2015-01-22 09:20:10 +00:00
p5_crpt2_test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
P1ss.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
P2ss.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
pkcs7-1.pem
pkcs7.pem
pkits-test.pl
r160test.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
randtest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
rc2test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
rc4test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
rc5test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
rmdtest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
rsa_test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
serverinfo.pem
sha1test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
sha256t.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
sha512t.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
smcont.txt
srptest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
ssltest.c free null cleanup finale 2015-05-01 10:02:07 -04:00
Sssdsa.cnf
Sssrsa.cnf
tcrl test script cleanup 2015-04-10 10:06:17 -04:00
tcrl.com
test_aesni
test_padlock
test_t4
test.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
testca SunOS non-posix shells do not grok export name=value 2015-04-17 01:33:51 -04:00
testca.com
testcrl.pem
testdsa.pem Add private/public key conversion tests 2015-03-29 03:26:12 +01:00
testdsapub.pem Add private/public key conversion tests 2015-03-29 03:26:12 +01:00
testec-p256.pem Add private/public key conversion tests 2015-03-29 03:26:12 +01:00
testecpub-p256.pem Add private/public key conversion tests 2015-03-29 03:26:12 +01:00
testenc Remove the special list-xxxx commands 2015-04-26 10:31:48 -04:00
testenc.com Remove the special list-xxxx commands 2015-04-26 10:31:48 -04:00
testgen test script cleanup 2015-04-10 10:06:17 -04:00
testgen.com
testp7.pem
testreq2.pem
testrsa.pem
testrsapub.pem Add private/public key conversion tests 2015-03-29 03:26:12 +01:00
tests.com Catch up the VMS build. 2015-03-05 18:20:06 +01:00
testsid.pem Remove SSLv2 support 2014-12-04 11:55:03 +01:00
testss test script cleanup 2015-04-10 10:06:17 -04:00
testss.com
testssl consistent test-start logging 2015-04-08 12:28:15 -04:00
testssl.com Remove SSLv2 support 2014-12-04 11:55:03 +01:00
testsslproxy
testtsa test script cleanup 2015-04-10 10:06:17 -04:00
testtsa.com Drop CA.sh for CA.pl 2015-04-08 14:07:39 -04:00
testutil.c more OSSL_NELEM cases 2015-05-04 13:03:49 +01:00
testutil.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
testx509.pem
times
tkey test script cleanup 2015-04-10 10:06:17 -04:00
tocsp consistent test-start logging 2015-04-08 12:28:15 -04:00
tocsp.com VMS adjustments: 2015-01-30 14:43:57 +01:00
tpkcs7 test script cleanup 2015-04-10 10:06:17 -04:00
tpkcs7.com
tpkcs7d test script cleanup 2015-04-10 10:06:17 -04:00
tpkcs7d.com
treq test script cleanup 2015-04-10 10:06:17 -04:00
treq.com
trsa.com
tsid test script cleanup 2015-04-10 10:06:17 -04:00
tsid.com
tverify.com
tx509 test script cleanup 2015-04-10 10:06:17 -04:00
tx509.com
Uss.cnf Use 2K RSA and SHA256 in tests 2015-04-20 07:23:04 -04:00
v3-cert1.pem
v3-cert2.pem
v3nametest.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00
VMSca-response.1
VMSca-response.2
wp_test.c Stop symlinking, move files to intended directory 2015-03-31 20:16:01 +02:00