Adam Langley 8750fe58f4 base64: fix underflow in EVP_EncodeBlock.
When I switched the base64 code to use size_t, I missed that one of the
loops was counting down, not up, and depended on the loop variable going
negative.

Additionally this change fixes a bug in NETSCAPE_SPKI_b64_encode where
the size of the result buffer was incorrectly calculated and a possible
memory leak.

Change-Id: Ibdf644244291274f50b314f3bb13a61b46858ca1
Reviewed-on: https://boringssl-review.googlesource.com/1220
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
2014-07-16 18:14:32 +00:00
..
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:36 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 15:31:01 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-07-07 19:30:35 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:40 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-07-07 19:30:35 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:36 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:40 -07:00
2014-06-20 13:17:40 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-07-07 20:20:53 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-07-07 20:20:53 +00:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00
2014-06-20 13:17:32 -07:00