From d5f356f9379b17e19afd6c27d4117e1943b1730d Mon Sep 17 00:00:00 2001 From: Techjar Date: Tue, 28 Apr 2020 20:42:02 -0400 Subject: [PATCH] Require minizip 2.0.0 or newer Minizip 1.x is the old broken version, while 2.x is the newer fork we use. Many distros ship the old version which is causing stack smashing in RedumpVerifier, so we'll only use the shared lib if it's the newer version. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06e7a46cc8..39ff1a40cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -610,7 +610,7 @@ else() add_subdirectory(Externals/zlib) endif() -pkg_check_modules(MINIZIP minizip) +pkg_check_modules(MINIZIP minizip>=2.0.0) if(MINIZIP_FOUND) message(STATUS "Using shared minizip") else()