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-28 16:34:52 -04:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-01-22 09:20:10 +00:00
2015-03-06 14:06:17 +00:00
2015-04-28 15:28:14 -04:00
2015-04-28 15:28:14 -04:00
2015-03-25 11:31:18 -04:00
2015-04-28 15:28:14 -04:00
2015-04-16 13:44:59 -04:00
2015-04-28 15:28:14 -04:00
2015-02-13 13:50:36 +00:00