From ee2dd805d6418dee2cce27d6bbef20f400fc934e Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Sat, 31 Jan 2026 16:57:24 -0800 Subject: Optimize symbol buffer access based on platform unaligned access --- deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deflate.c') diff --git a/deflate.c b/deflate.c index e0f89fab9d..81e1ac5a5f 100644 --- a/deflate.c +++ b/deflate.c @@ -167,7 +167,7 @@ Z_INTERNAL deflate_allocs* alloc_deflate(PREFIX3(stream) *strm, int windowBits, int window_size = DEFLATE_ADJUST_WINDOW_SIZE((1 << windowBits) * 2); int prev_size = (1 << windowBits) * (int)sizeof(Pos); int head_size = HASH_SIZE * sizeof(Pos); - int pending_size = lit_bufsize * LIT_BUFS; + int pending_size = (lit_bufsize * LIT_BUFS) + 1; int state_size = sizeof(deflate_state); int alloc_size = sizeof(deflate_allocs); -- cgit 0.0.5-2-1-g0f52