mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
4bad474746
the sctp BIO implementation uses the generic BIO dgram implementation under the covers for some operations. However, the private data for each bio is incongruous, leading to segfaults when doing things like passing a dgram_sctp_ctrl operation to the underlying dgram_ctrl method. Fix this by removing the common fields between the two strcutres and embedding a bio_dgram_data as the first member of the bio_dgram_sctp_data struct. This allows implicit casting when that call path is taken, avoiding any memory mis-use Fixes #20643 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22278) |
||
---|---|---|
.. | ||
bf_buff.c | ||
bf_lbuf.c | ||
bf_nbio.c | ||
bf_null.c | ||
bf_prefix.c | ||
bf_readbuff.c | ||
bio_addr.c | ||
bio_cb.c | ||
bio_dump.c | ||
bio_err.c | ||
bio_lib.c | ||
bio_local.h | ||
bio_meth.c | ||
bio_print.c | ||
bio_sock2.c | ||
bio_sock.c | ||
bss_acpt.c | ||
bss_bio.c | ||
bss_conn.c | ||
bss_core.c | ||
bss_dgram_pair.c | ||
bss_dgram.c | ||
bss_fd.c | ||
bss_file.c | ||
bss_log.c | ||
bss_mem.c | ||
bss_null.c | ||
bss_sock.c | ||
build.info | ||
ossl_core_bio.c |