diff --git a/.gitignore b/.gitignore index 49b2cb2..8a0d755 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /test/build/ /xcodeproj/ .vscode/ +Testing/ # Object files *.o diff --git a/src/miniz.h b/src/miniz.h index ab29b11..7a24490 100644 --- a/src/miniz.h +++ b/src/miniz.h @@ -1133,7 +1133,7 @@ extern "C" { enum { /* Note: These enums can be reduced as needed to save memory or stack space - they are pretty conservative. */ - MZ_ZIP_MAX_IO_BUF_SIZE = 64 * 1024, + MZ_ZIP_MAX_IO_BUF_SIZE = 8 * 1024, MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE = 512, MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE = 512 }; @@ -8560,7 +8560,7 @@ mz_bool mz_zip_writer_add_read_buf_callback( pState = pZip->m_pState; cur_archive_file_ofs = pZip->m_archive_size; - + if ((!pState->m_zip64) && (max_size > MZ_UINT32_MAX)) { /* Source file is too large for non-zip64 */ /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */ diff --git a/src/zip.h b/src/zip.h index 7327d94..0329615 100644 --- a/src/zip.h +++ b/src/zip.h @@ -45,7 +45,7 @@ typedef long ssize_t; /* byte count or error */ #endif #ifndef MAX_PATH -#define MAX_PATH 32767 /* # chars in a path name including NULL */ +#define MAX_PATH 1024 /* # chars in a path name including NULL */ #endif /**