Skip to content

Commit

Permalink
Merge pull request richgel999#143 from driazati/fixcrc
Browse files Browse the repository at this point in the history
Fix missing crc guard
  • Loading branch information
uroni authored Dec 14, 2019
2 parents f66b3e1 + a88d157 commit 1567c8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniz_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,9 @@ void *mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFile
mz_bool mz_zip_reader_extract_to_callback(mz_zip_archive *pZip, mz_uint file_index, mz_file_write_func pCallback, void *pOpaque, mz_uint flags)
{
int status = TINFL_STATUS_DONE;
#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
mz_uint file_crc32 = MZ_CRC32_INIT;
#endif
mz_uint64 read_buf_size, read_buf_ofs = 0, read_buf_avail, comp_remaining, out_buf_ofs = 0, cur_file_ofs;
mz_zip_archive_file_stat file_stat;
void *pRead_buf = NULL;
Expand Down

0 comments on commit 1567c8d

Please sign in to comment.