From 687794a396a8b951e73a638c82549396715247f1 Mon Sep 17 00:00:00 2001 From: Kornel Date: Wed, 25 Feb 2026 05:14:30 +0000 Subject: [PATCH 1/2] Bump cmake version --- CMakeLists.txt | 2 +- ucm.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00ac11c20..0671c078f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.5) project(zlib C) diff --git a/ucm.cmake b/ucm.cmake index 7eb2efb14..38fe8577b 100644 --- a/ucm.cmake +++ b/ucm.cmake @@ -10,7 +10,7 @@ # The documentation can be found at the library's page: # https://github.com/onqtam/ucm -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.5) include(CMakeParseArguments) From 803658e20e7be40a11399b82fd0ba8128e6ba54d Mon Sep 17 00:00:00 2001 From: Kornel Date: Mon, 16 Feb 2026 18:35:41 +0000 Subject: [PATCH 2/2] Add CHUNKCOPY_CHUNK_SIZE padding --- inflate.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inflate.c b/inflate.c index 0cb62486d..af3b2a7ba 100644 --- a/inflate.c +++ b/inflate.c @@ -1529,8 +1529,12 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) { if (copy == Z_NULL) return Z_MEM_ERROR; window = Z_NULL; if (state->window != Z_NULL) { + unsigned wsize_padded = 1U << state->wbits; + #if defined(INFLATE_CHUNK_SIMD_NEON) || defined(INFLATE_CHUNK_SIMD_SSE2) + wsize_padded += CHUNKCOPY_CHUNK_SIZE; + #endif window = (unsigned char FAR *) - ZALLOC(source, 1U << state->wbits, sizeof(unsigned char)); + ZALLOC(source, wsize_padded, sizeof(unsigned char)); if (window == Z_NULL) { ZFREE(source, copy); return Z_MEM_ERROR;