Skip to content

Commit

Permalink
Revert 'miniz: apply CVE-2018-12913 fix from mainstream'
Browse files Browse the repository at this point in the history
This reverts commit 3fd5553

Reported to cause failure in embedded file extraction in vkquake
Issue reported to mainstream at:
richgel999/miniz#329.

(cherry picked from commit 271d588)
  • Loading branch information
sezero authored and alexey-lysiuk committed Jan 2, 2025
1 parent b6fa5ab commit ea907b4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Quake/miniz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ea907b4

Please sign in to comment.