Matt Caswell
abc7a266a3
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:21:53 +01:00
..
2015-04-20 18:40:46 +02:00
2015-04-18 14:43:33 +01:00
2015-01-22 09:31:38 +00:00
2015-04-30 23:21:53 +01:00
2015-04-21 17:50:36 +02:00
2015-01-22 09:31:38 +00:00
2015-02-24 10:12:57 +01:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-04-16 13:50:01 -04:00
2015-01-22 09:31:38 +00:00
2015-02-12 13:01:33 -05:00
2015-04-30 23:14:55 +01:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-04-27 19:50:19 +02:00
2015-01-22 09:31:38 +00:00
2015-03-25 12:41:28 +00:00
2015-01-26 10:46:26 -05:00
2015-01-22 09:31:38 +00:00
2015-04-30 23:21:53 +01:00
2015-04-16 13:50:01 -04:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-04-08 17:59:41 +02:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-01-22 14:11:04 +00:00
2015-02-24 10:12:57 +01:00
2015-03-19 12:58:35 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-04-16 13:50:01 -04:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-03-19 12:58:35 +00:00
2015-01-22 09:31:38 +00:00
2015-04-02 09:51:32 +02:00
2015-04-16 13:50:01 -04:00
2015-03-17 13:48:04 +00:00
2015-01-22 09:31:38 +00:00
2015-04-16 13:50:01 -04:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-02-22 08:10:29 +01:00
2015-01-22 09:31:48 +00:00
2015-04-29 15:44:03 +01:00
2015-04-16 13:50:01 -04:00
2014-06-10 23:20:55 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-06 11:14:23 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-06-18 13:43:09 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-04-08 17:59:40 +02:00
2015-01-22 09:31:38 +00:00
2015-02-09 13:01:15 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-06-18 13:43:09 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-13 11:28:54 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-04-22 17:20:38 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-03-19 13:34:56 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-07-20 14:36:49 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00