openssl/crypto/bio
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 9d9e37744c)
2015-04-30 23:26:07 +01:00
..
.cvsignore Add emacs cache files to .cvsignore. 2005-04-11 14:17:07 +00:00
b_dump.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
b_print.c Clarify logic in BIO_*printf functions 2015-04-30 23:26:07 +01:00
b_sock.c Re-align some comments after running the reformat script. 2015-01-22 09:39:01 +00:00
bf_buff.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bf_lbuf.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bf_nbio.c Code style: space after 'if' 2015-04-16 13:51:51 -04:00
bf_null.c Re-align some comments after running the reformat script. 2015-01-22 09:39:01 +00:00
bio.h make update 2015-03-19 13:38:37 +00:00
bio_cb.c BIO_debug_callback: Fix output on 64-bit machines 2015-03-10 12:34:27 +01:00
bio_err.c make update 2015-03-19 13:38:37 +00:00
bio_lcl.h Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bio_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_acpt.c Re-align some comments after running the reformat script. 2015-01-22 09:39:01 +00:00
bss_bio.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_conn.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_dgram.c Code style: space after 'if' 2015-04-16 13:51:51 -04:00
bss_fd.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_file.c Rerun util/openssl-format-source -v -c . 2015-01-22 09:38:49 +00:00
bss_log.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_mem.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_null.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_rtcp.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
bss_sock.c Run util/openssl-format-source -v -c . 2015-01-22 09:38:39 +00:00
Makefile make update 2014-01-06 13:33:27 +00:00