openssl/crypto/bio
Matt Caswell 416a5b6c92 BIO_printf() can fail to print the last character
If the string to print is exactly 2048 character long (excluding the NULL
terminator) then BIO_printf will chop off the last byte. This is because
it has filled its static buffer but hasn't yet allocated a dynamic buffer.
In cases where we don't have a dynamic buffer we need to truncate but that
is not the case for BIO_printf(). We need to check whether we are able to
have a dynamic buffer buffer deciding to truncate.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-06-03 20:29:04 +01:00
..
b_addr.c Fix some malloc failures in b_addr.c 2016-05-18 10:47:15 +01:00
b_dump.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
b_print.c BIO_printf() can fail to print the last character 2016-06-03 20:29:04 +01:00
b_sock2.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
b_sock.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bf_buff.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bf_lbuf.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bf_nbio.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bf_null.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bio_cb.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bio_err.c Remove unused error/function codes. 2016-05-23 15:04:23 -04:00
bio_lcl.h Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bio_lib.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bio_meth.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_acpt.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_bio.c Add more zalloc 2016-05-29 01:36:11 +02:00
bss_conn.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_dgram.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_fd.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_file.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_log.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_mem.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_null.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
bss_sock.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
build.info Adapt bf_lbuf for opaque BIO 2016-03-30 04:35:14 +02:00