Matt Caswell
d889682208
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>
(cherry picked from commit 9d9e37744cd5119f9921315864d1cd28717173cd)
2015-04-30 23:26:07 +01:00
..
2015-03-13 21:14:56 -07:00
2015-04-18 14:44:17 +01:00
2015-01-22 09:38:39 +00:00
2015-04-30 23:26:07 +01:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:38:39 +00:00
2015-02-12 13:01:42 -05:00
2015-04-30 23:24:21 +01:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-03-31 16:41:33 +01:00
2015-01-22 09:38:39 +00:00
2015-03-25 12:45:17 +00:00
2015-04-16 18:29:49 +02:00
2015-01-22 09:38:39 +00:00
2015-04-30 23:26:07 +01:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-03-25 15:19:20 +01:00
2012-06-08 09:18:47 +00:00
2015-03-19 12:59:31 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-04-16 13:51:51 -04:00
2015-03-19 13:38:37 +00:00
2015-01-22 09:38:39 +00:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-02-22 09:15:11 +01:00
2015-01-22 09:39:01 +00:00
2015-04-11 20:57:43 +02:00
2015-04-16 13:51:51 -04:00
2008-04-17 10:19:16 +00:00
2011-08-12 12:31:08 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2011-11-14 20:58:01 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2014-10-15 10:49:24 +02:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-02-09 13:01:28 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2011-11-14 20:45:57 +00:00
2014-10-15 10:49:08 +02:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-13 11:29:11 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-04-22 17:24:47 +01:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:39:01 +00:00
2015-01-22 09:38:39 +00:00
2005-12-16 10:37:24 +00:00
2015-03-19 13:41:07 +00:00
2015-01-22 09:38:39 +00:00
2013-06-30 23:15:53 +02:00
2015-01-22 09:38:39 +00:00
2012-04-27 20:20:15 +00:00
2015-01-22 09:38:39 +00:00
2011-11-14 20:47:22 +00:00
2013-02-11 10:41:57 +01:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2013-01-22 22:54:04 +01:00
2013-03-18 19:50:23 +01:00