a33915d690
People expect to do: CBB foo; if (!CBB_init(&foo, 100) || … …) { CBB_cleanup(&foo); return 0; } However, currently, if the allocation of |initial_capacity| fails in |CBB_init| then |CBB_cleanup| will operate on uninitialised values. This change makes the above pattern safe. Change-Id: I3e002fda8f0a3ac18650b504e7e84a842d4165ca Reviewed-on: https://boringssl-review.googlesource.com/6495 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
ber.c | ||
bytestring_test.cc | ||
cbb.c | ||
cbs.c | ||
CMakeLists.txt | ||
internal.h |