boringssl/crypto/bytestring
Doug Hogan a84f06fc1e Move free from cbb_init() to only CBB_init().
CBB_init_fixed() should not call free because it can lead to use after
free or double free bugs.  The caller should be responsible for
creating and destroying the buffer.

In the current code, ssl3_get_v2_client_hello() may free s->init_buf->data
via CBB_init_fixed().  It can also be freed via SSL_free(s) since
ssl3_get_v2_client_hello() doesn't set it to NULL and CBB_init_fixed()
can't set the caller's pointer to NULL.

Change-Id: Ia05a67ae25af7eb4fb04f08f20d50d912b41e38b
2015-02-02 17:01:32 -08:00
..
ber.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
bytestring_test.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
cbb.c Move free from cbb_init() to only CBB_init(). 2015-02-02 17:01:32 -08:00
cbs.c Extended master secret support. 2014-10-24 21:19:44 +00:00
CMakeLists.txt Change CMakeLists.txt to two-space indent. 2015-01-28 16:37:10 -08:00
internal.h Export CBS_get_any_asn1_element. 2014-08-28 00:45:30 +00:00