From 3adaa095a7a6c3f2cc00f73311f9bc8688c21aa7 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 5 Jul 2024 23:02:36 -0500 Subject: [PATCH] One more correction for deflateUsed() bits in stored case. --- deflate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deflate.c b/deflate.c index 1b0b3f7..2987855 100644 --- a/deflate.c +++ b/deflate.c @@ -1809,6 +1809,8 @@ local block_state deflate_stored(deflate_state *s, int flush) { } /* We've done all we can with the available input and output. */ + if (last) + s->bi_used = 8; return last ? finish_started : need_more; }