]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 3/5] lib-compression: Add o_stream_deflate_reset_dict()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 16 Apr 2026 15:38:41 +0000 (17:38 +0200)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit3cdde39d062c981d237eeff44a6d291b3da2bcc6
tree4ac7a832e9390bf25269a4540fa6b71a21452de5
parentebf51a7f99a30f144e033a24b3e9e01c7c01b43b
[PATCH 3/5] lib-compression: Add o_stream_deflate_reset_dict()

New public function that locates the deflate ostream in the parent chain
(transparently handles rawlog wrappers) and schedules a Z_FULL_FLUSH on
the next uncork/flush.  Z_FULL_FLUSH emits all buffered data and then
resets the deflate dictionary, so subsequent compressed output cannot
reference data from before the call.

Adds a pending_dict_reset flag to struct zlib_ostream.  The flag persists
through partial flush retries and is cleared only once the full flush
loop completes.

Gbp-Pq: Name 0003-lib-compression-Add-o_stream_deflate_reset_dict.patch
src/lib-compression/ostream-zlib.c
src/lib-compression/ostream-zlib.h