boringssl/crypto/bytestring
David Benjamin 11aac10987 Fix theoretical memory leak on malloc error in CBS_asn1_ber_to_der.
On failure, CBB_finish doesn't call CBB_cleanup. Also chain more of the ||s
together now that CBB_cleanup after failed CBB_init is legal.

(I don't think this is actually reachable because the CBB is guaranteed to be
flushed by this point.)

Change-Id: Ib16a0a185f15e13675ac2550c5e8e0926ceb7957
Reviewed-on: https://boringssl-review.googlesource.com/7051
Reviewed-by: Adam Langley <agl@google.com>
2016-02-04 17:23:28 +00:00
..
ber.c Fix theoretical memory leak on malloc error in CBS_asn1_ber_to_der. 2016-02-04 17:23:28 +00:00
bytestring_test.cc Add CBB_reserve and CBB_did_write. 2015-12-22 00:23:52 +00:00
cbb.c Rewrite ssl3_send_server_key_exchange to use CBB. 2015-12-22 17:23:58 +00:00
cbs.c Allow out_present to be NULL in CBS_get_optional_asn1 2015-09-03 18:46:17 +00:00
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
internal.h Export |CBS_get_any_ber_asn1_element|. 2015-06-05 21:56:42 +00:00