Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.5)

project(zlib C)

Expand Down
6 changes: 5 additions & 1 deletion inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ucm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading