From ea907b478a5157cb8eaf6153b73cc85413a54e46 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 1 Jan 2025 20:10:02 +0300 Subject: [PATCH] Revert 'miniz: apply CVE-2018-12913 fix from mainstream' This reverts commit 3fd55538c979aaad3fd8d5665408c26862b1b163 Reported to cause failure in embedded file extraction in vkquake Issue reported to mainstream at: https://github.com/richgel999/miniz/pull/329. (cherry picked from commit 271d588ef2d7d51328e0f349d1111f664c63cf6a) --- Quake/miniz.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Quake/miniz.c b/Quake/miniz.c index 1a1802818..a9318862d 100644 --- a/Quake/miniz.c +++ b/Quake/miniz.c @@ -649,12 +649,6 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_nex bit_buf >>= code_len; num_bits -= code_len; - /* assert(sym2 != 0 && counter != 0); */ - if (sym2 == 0 && counter == 0) - { - TINFL_CR_RETURN_FOREVER(40, TINFL_STATUS_FAILED); - } - pOut_buf_cur[0] = (mz_uint8)counter; if (sym2 & 256) {