Skip to content

Commit

Permalink
Merge pull request #329 from iibclothier/master
Browse files Browse the repository at this point in the history
  • Loading branch information
uroni authored Dec 29, 2024
2 parents 2fa13ca + 8980137 commit 0c30a00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
fuzz-seconds: 900
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: failure()
with:
name: artifacts
path: ./out/artifacts
path: ./out/artifacts
6 changes: 6 additions & 0 deletions miniz_tinfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,12 @@ extern "C"
}
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 0c30a00

Please sign in to comment.