openssl/crypto/comp
Joshua Rogers 573fbe6634 comp/zstd: fix BIO_CTRL_RESET to properly reset state
BIO_CTRL_RESET zeroed compress.bufsize and did not reinitialize the ZSTD
streams or buffer positions. After a reset, the next write could try to use
a 0 byte buffer and stall or behave unpredictably.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28844)
2025-11-18 17:46:24 +01:00
..
build.info Add ZSTD compression support (RFC8478bis) 2022-10-18 09:30:21 -04:00
c_brotli.c Correct error code in raise in bio_zstd/brotli_flush() 2025-10-17 19:17:40 +02:00
c_zlib.c Copyright year updates 2025-09-02 13:05:45 +00:00
c_zstd.c comp/zstd: fix BIO_CTRL_RESET to properly reset state 2025-11-18 17:46:24 +01:00
comp_err.c Add support for compressed certificates (RFC8879) 2022-10-18 09:30:22 -04:00
comp_lib.c Copyright year updates 2025-09-02 13:05:45 +00:00
comp_local.h Update COMP_METHOD 2022-10-18 09:30:22 -04:00