boringssl/crypto/asn1
Adam Langley 69a01608f3 Add malloc failure tests.
This commit fixes a number of crashes caused by malloc failures. They
were found using the -malloc-test=0 option to runner.go which runs tests
many times, causing a different allocation call to fail in each case.

(This test only works on Linux and only looks for crashes caused by
allocation failures, not memory leaks or other errors.)

This is not the complete set of crashes! More can be found by collecting
core dumps from running with -malloc-test=0.

Change-Id: Ia61d19f51e373bccb7bc604642c51e043a74bd83
Reviewed-on: https://boringssl-review.googlesource.com/2320
Reviewed-by: Adam Langley <agl@google.com>
2014-11-19 01:24:46 +00:00
..
a_bitstr.c Inital import. 2014-06-20 13:17:32 -07:00
a_bool.c Inital import. 2014-06-20 13:17:32 -07:00
a_bytes.c Inital import. 2014-06-20 13:17:32 -07:00
a_d2i_fp.c Inital import. 2014-06-20 13:17:32 -07:00
a_dup.c Inital import. 2014-06-20 13:17:32 -07:00
a_enum.c Inital import. 2014-06-20 13:17:32 -07:00
a_gentm.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
a_i2d_fp.c Inital import. 2014-06-20 13:17:32 -07:00
a_int.c Inital import. 2014-06-20 13:17:32 -07:00
a_mbstr.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
a_object.c Fix OID handling. 2014-08-07 21:09:47 +00:00
a_octet.c Inital import. 2014-06-20 13:17:32 -07:00
a_print.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
a_strnid.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
a_time.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
a_type.c Inital import. 2014-06-20 13:17:32 -07:00
a_utctm.c Memory leak and NULL dereference fixes. 2014-07-28 17:05:12 -07:00
a_utf8.c Inital import. 2014-06-20 13:17:32 -07:00
asn1_error.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
asn1_lib.c Add visibility rules. 2014-07-31 22:03:11 +00:00
asn1_locl.h Move the X509_NAME typedef into x509.h. 2014-10-28 22:38:38 +00:00
asn1_par.c Inital import. 2014-06-20 13:17:32 -07:00
asn_pack.c Remove some dead code. 2014-08-19 19:00:49 +00:00
bio_asn1.c Memory leak and NULL dereference fixes. 2014-07-28 17:05:12 -07:00
bio_ndef.c Inital import. 2014-06-20 13:17:32 -07:00
charmap.pl Add license to charmap.pl. 2014-06-30 16:48:53 -07:00
CMakeLists.txt Inital import. 2014-06-20 13:17:32 -07:00
f_enum.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
f_int.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
f_string.c Fix a2i_ASN1_* leak on failure. 2014-11-06 01:29:59 +00:00
t_bitst.c Inital import. 2014-06-20 13:17:32 -07:00
t_pkey.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_dec.c Shush some dead assignments. 2014-11-06 01:34:33 +00:00
tasn_enc.c Memory leak and NULL dereference fixes. 2014-07-28 17:05:12 -07:00
tasn_fre.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_new.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_prn.c Const correctness. 2014-06-20 13:17:36 -07:00
tasn_typ.c Inital import. 2014-06-20 13:17:32 -07:00
tasn_utl.c Inital import. 2014-06-20 13:17:32 -07:00
x_bignum.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
x_long.c Inital import. 2014-06-20 13:17:32 -07:00