Commit 066e0b6 for zlib

commit 066e0b68a6c26d6b737bfad2ba395eb1317ca645
Author: Jason Gross <jason@theorem.dev>
Date:   Wed Aug 19 00:19:19 2026 +0000

    Fix miscount of bytes consumed when returning Z_NEED_DICT.

    total_in was short six bytes in that case.

diff --git a/inflate.c b/inflate.c
index 2cbf719..f3ac3f9 100644
--- a/inflate.c
+++ b/inflate.c
@@ -708,6 +708,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
         case DICT:
             if (state->havedict == 0) {
                 RESTORE();
+                strm->total_in += in - strm->avail_in;
                 return Z_NEED_DICT;
             }
             strm->adler = state->check = adler32(0L, Z_NULL, 0);