From b545026628edf8da7fdb715a59483a2593f75772 Mon Sep 17 00:00:00 2001 From: huangFF0904 <625173hhh@gmail.com> Date: Thu, 18 Dec 2025 16:04:55 +0800 Subject: [PATCH] Fix deflate state reset to clear sym_next instead of last_lit --- lib/zlib/trees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c index bb09554..d490704 100644 --- a/lib/zlib/trees.c +++ b/lib/zlib/trees.c @@ -420,7 +420,7 @@ local void init_block(s) s->dyn_ltree[END_BLOCK].Freq = 1; s->opt_len = s->static_len = 0L; - s->last_lit = s->matches = 0; + s->sym_next = s->matches = 0; } #define SMALLEST 1