openssl/crypto/bio
Richard Levitte 0d94212a04 BIO_s_mem() write: Skip early when input length is zero
When the input length is zero, just return zero early.  Otherwise,
there's a small chance that memory allocation is engaged, fails and
returns -1, which is a bit confusing when nothing should be written.

Fixes #4782 #4827

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/6175)
2018-05-05 00:14:30 +02:00
..
b_addr.c Ensure the thread keys are always allocated in the same order 2018-04-20 15:45:06 +02:00
b_dump.c Update copyright year 2018-02-13 13:59:25 +00:00
b_print.c Update copyright year 2018-04-17 15:18:40 +02:00
b_sock2.c Add BIO_bind function to bind local address for a socket. 2018-02-19 22:58:37 +01:00
b_sock.c Use get_last_sys_error() instead of get_last_rtl_error() 2018-04-26 15:01:16 +02:00
bf_buff.c Fix invalid function type casts. 2017-12-15 19:33:48 +01:00
bf_lbuf.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
bf_nbio.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bf_null.c Update copyright year 2018-02-13 13:59:25 +00:00
bio_cb.c
bio_err.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bio_lcl.h
bio_lib.c Fix bio callback backward compatibility 2018-03-19 14:20:53 +01:00
bio_meth.c Convert _meth_get_ functions to const getters 2018-03-21 10:37:05 +00:00
bss_acpt.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bss_bio.c
bss_conn.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bss_dgram.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
bss_fd.c Add comments to NULL func ptrs in bio_method_st 2017-12-18 07:04:48 +10:00
bss_file.c Add comments to NULL func ptrs in bio_method_st 2017-12-18 07:04:48 +10:00
bss_log.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bss_mem.c BIO_s_mem() write: Skip early when input length is zero 2018-05-05 00:14:30 +02:00
bss_null.c Update copyright year 2018-02-13 13:59:25 +00:00
bss_sock.c Add comments to NULL func ptrs in bio_method_st 2017-12-18 07:04:48 +10:00
build.info