From 4730cf6e79709912882636d77e0867b0be954f0e Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Thu, 15 Jul 2021 16:42:29 +0200 Subject: [PATCH] WinZip Kernel: Increase supported data length from 8k to 16mb --- OpenCL/m13600-pure.cl | 2 +- docs/changes.txt | 1 + src/modules/module_13600.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenCL/m13600-pure.cl b/OpenCL/m13600-pure.cl index 1e0ff6d1c..0202cf0bf 100644 --- a/OpenCL/m13600-pure.cl +++ b/OpenCL/m13600-pure.cl @@ -37,7 +37,7 @@ typedef struct zip2 u32 verify_bytes; u32 compress_length; u32 data_len; - u32 data_buf[2048]; + u32 data_buf[0x4000000]; u32 auth_len; u32 auth_buf[4]; diff --git a/docs/changes.txt b/docs/changes.txt index d9e895e53..28876cd93 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -63,6 +63,7 @@ - OpenCL Runtime: Workaround JiT crash (SC failed. No reason given.) on macOS by limiting local memory allocations to 32k - Status View: Include time and duration info when pausing and resuming - Tests: Changed tests for VeraCrypt from -a 0 to -a 3, because password extension is not available to all shells +- WinZip Kernel: Increase supported data length from 8k to 16mb * changes v6.2.1 -> v6.2.2 diff --git a/src/modules/module_13600.c b/src/modules/module_13600.c index a7d675138..ec1c4e6ef 100644 --- a/src/modules/module_13600.c +++ b/src/modules/module_13600.c @@ -61,7 +61,7 @@ typedef struct zip2 u32 verify_bytes; u32 compress_length; u32 data_len; - u32 data_buf[2048]; + u32 data_buf[0x4000000]; u32 auth_len; u32 auth_buf[4]; @@ -166,7 +166,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE | TOKEN_ATTR_VERIFY_HEX; token.len_min[7] = 0; - token.len_max[7] = 16384; + token.len_max[7] = 0x4000000 * 4 * 2; token.sep[7] = '*'; token.attr[7] = TOKEN_ATTR_VERIFY_LENGTH | TOKEN_ATTR_VERIFY_HEX;