From 5053d308cfffe39216cef265755889c9cd0eb440 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Wed, 19 Aug 2026 14:34:34 +0100 Subject: [PATCH] Fixed a cleanup bug --- inflate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inflate.c b/inflate.c index 27a23ac..a7c3684 100644 --- a/inflate.c +++ b/inflate.c @@ -95,6 +95,10 @@ static inf_stat_t inf_block (istream_t *is, FILE *outfile, uint64_t dst_cap, uin } else if (litlen == LITLEN_EOB) { /* End of block. */ + if (!istream_advance (is, used_tot)) { + return HWINF_ERR; + } + return HWINF_OK; } -- 2.34.1