MAX_PATH=1024 (#222)

* MAX_PATH=1024

* MZ_ZIP_MAX_IO_BUF_SIZE = 8K
This commit is contained in:
Kuba Podgórski 2021-12-25 19:15:52 +01:00 committed by GitHub
parent c30cb27c74
commit 3e9952a21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/test/build/
/xcodeproj/
.vscode/
Testing/
# Object files
*.o

View File

@ -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); */

View File

@ -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
/**