Fixed a cleanup bug master
authorRobert Pengelly <robertapengelly@hotmail.com>
Wed, 19 Aug 2026 13:34:34 +0000 (14:34 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Wed, 19 Aug 2026 13:34:34 +0000 (14:34 +0100)
inflate.c

index 27a23accaffc357b671f9d0eb2d828f0de1841f7..a7c3684586dab12e922015410dbb493d60b48515 100644 (file)
--- 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;
         
         }