| commit | 09760962244e0c52825ef1eaccc92c4ba15d77b8 | [log] [tgz] |
|---|---|---|
| author | Adam Langley <agl@google.com> | Tue Jun 02 15:48:37 2015 -0700 |
| committer | Adam Langley <agl@google.com> | Wed Jun 03 22:07:40 2015 +0000 |
| tree | 5ccb29849e696b267d5fdac4d1c2b76d3f7e9bbf | |
| parent | ba5934b77f0058dc963b075e0ec1f401a24c0b2b [diff] |
bytestring: Test out_header_len != NULL before writing. The documentation for |CBS_get_any_asn1_element| says that |out_header_len| may be NULL, but in the case of an indefinite-length element it would be written unconditionally. Thanks to Doug Hogan for noticing this. Change-Id: I17609b3465df73d42dd9efd75e783159aa99a59b Reviewed-on: https://boringssl-review.googlesource.com/4993 Reviewed-by: Adam Langley <agl@google.com>