openssl/crypto/bio
Juergen Christ 278b0d8b67 Fix asan finding in bio_addr
Running test_tfo_cli under asan yields
==166214==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60700000d57c at pc 0x03ffa004ed86 bp 0x03ffe2977e80 sp 0x03ffe2977668
READ of size 112 at 0x60700000d57c thread T0
    #0 0x3ffa004ed85 in memcpy (/lib64/libasan.so.8+0x4ed85)
    #1 0x3ff9f3615b7 in BIO_ADDR_dup crypto/bio/bio_addr.c:77
[...]
and fails the test.

Fix this by copying the right structure of the union.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18979)
2022-08-12 16:13:13 +01:00
..
bf_buff.c
bf_lbuf.c
bf_nbio.c
bf_null.c
bf_prefix.c
bf_readbuff.c
bio_addr.c Fix asan finding in bio_addr 2022-08-12 16:13:13 +01:00
bio_cb.c
bio_dump.c
bio_err.c Update copyright year 2022-05-03 13:34:51 +01:00
bio_lib.c BIO_ctrl: Avoid spurious error being raised on NULL bio parameter 2021-09-28 12:12:32 +02:00
bio_local.h Add config option OPENSSL_NO_UNIX_SOCK 2022-07-08 14:08:45 +10:00
bio_meth.c
bio_print.c Update copyright year 2022-05-03 13:34:51 +01:00
bio_sock2.c Fix KTLS with BIO_new_connect 2022-05-17 13:16:03 +02:00
bio_sock.c Don't include sys/select.h on HP-UX as it doesn't exist 2022-05-27 08:05:48 +02:00
bss_acpt.c Exclude IPv6 code using OPENSSL_USE_IPV6 instead of AF_INET6 2022-05-09 10:06:18 +10:00
bss_bio.c Update copyright year 2022-05-03 13:34:51 +01:00
bss_conn.c Fix KTLS with BIO_new_connect 2022-05-17 13:16:03 +02:00
bss_core.c Update copyright year 2022-05-03 13:34:51 +01:00
bss_dgram.c Coverity 1506566: unchecked return value 2022-07-17 17:51:13 +10:00
bss_fd.c
bss_file.c
bss_log.c
bss_mem.c Give BIO_s_mem() the ability to support datagrams 2022-07-28 08:06:52 +01:00
bss_null.c
bss_sock.c Update copyright year 2022-05-03 13:34:51 +01:00
build.info
ossl_core_bio.c