Matt Caswell 9d9e37744c Clarify logic in BIO_*printf functions
The static function dynamically allocates an output buffer if the output
grows larger than the static buffer that is normally used. The original
logic implied that |currlen| could be greater than |maxlen| which is
incorrect (and if so would cause a buffer overrun). Also the original
logic would call OPENSSL_malloc to create a dynamic buffer equal to the
size of the static buffer, and then immediately call OPENSSL_realloc to
make it bigger, rather than just creating a buffer than was big enough in
the first place. Thanks to Kevin Wojtysiak (Int3 Solutions) and Paramjot
Oberoi (Int3 Solutions) for reporting this issue.

Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-04-30 23:12:39 +01:00
..
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 16:34:52 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 18:10:52 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 16:34:52 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 18:10:52 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 18:10:52 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:57:32 -04:00
2015-04-30 17:57:32 -04:00
2015-04-20 15:06:22 +02:00
2015-04-30 18:10:52 -04:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-04-16 13:44:59 -04:00
2015-04-30 17:33:59 -04:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:33:59 -04:00
2015-04-30 18:10:52 -04:00
2015-04-20 15:06:22 +02:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-04-20 15:06:22 +02:00
2015-01-23 19:09:01 +01:00
2015-04-28 15:28:14 -04:00
2015-04-30 17:57:32 -04:00
2015-01-22 09:20:09 +00:00
2015-01-22 09:20:09 +00:00
2015-01-23 11:58:26 -05:00
2015-01-22 09:20:09 +00:00
2014-06-04 08:34:18 +02:00
2015-01-22 09:20:09 +00:00