]> git.ipfire.org Git - thirdparty/openssl.git/commit
comp/zstd: fix BIO_CTRL_RESET to properly reset state
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 23:15:05 +0000 (07:15 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 18 Nov 2025 16:46:24 +0000 (17:46 +0100)
commit573fbe66344734031428a98df40b485bbe4d0dbc
tree12208707905a3166ef86380a583efc142b097b71
parentcf3cd850cdb5fc23d932fe5981406efec351b528
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)
crypto/comp/c_zstd.c