25 Commits

Author SHA1 Message Date
Martin
fef12d34f1 Remove _LARGEFILE64_SOURCE requirement from apple defines for large files 2018-02-20 18:58:32 +01:00
Jonathan Hamilton
7a7d0b423b Fix assert with mz_zip_writer_add_mem* w/MZ_DEFAULT_COMPRESSION
Issue #81

As MZ_DEFAULT_COMPRESSION is set as "-1", one of the bits is incorrectly
interpreted as the "MZ_ZIP_FLAG_COMPRESSED_DATA" flag before the check
for (flags < 0) intended to catch the MZ_DEFAULT_COMPRESION case.

This would then cause an assert() to be hit on any calls where the
uncomp_size is non-zero.

Moving the "Default" level check above any other flag checks should
solve this issue.
2017-11-23 00:22:24 -08:00
T. Isaac Lightburn
0b7d3070b9 Fix resource leak in mz_zip_reader_init_file_v2
Was returning on error without closing file.
2017-10-12 21:29:43 -05:00
Phil Greenland
0d13890f4b Add "iterative" file extraction method based on mz_zip_reader_extract_to_callback. 2017-05-14 11:54:29 +01:00
Martin
149b34c254 Remove check for cur_archive_file_ofs > UINT_MAX, because cur_archive_file_ofs is not used after this point 2017-04-24 17:28:20 +02:00
Michał Janiszewski
a6a989cc18 clang-format the sources 2017-03-23 08:50:08 +01:00
Michał Janiszewski
3c7177c0cb Fix misleading indentation 2017-03-23 08:38:10 +01:00
Martin
1c6ca868d7 Fix compilation with the various omission compile definitions 2017-03-13 19:38:42 +01:00
Martin
e72ae3f4c2 Use UTF-8 for filenames in ZIP files per default 2017-03-11 18:24:44 +01:00
Martin
91ce90fa17 Added callback for periodic flushes 2017-02-08 15:53:52 +01:00
Martin
a7e7e92a20 Fix compile warnings 2017-01-19 15:57:04 +01:00
Martin
3b7ee5aea5 Fix compile warnings 2017-01-19 15:53:53 +01:00
Martin
4c36ab0230 Rerun clang-format 2017-01-03 01:30:38 +01:00
Martin
4fa873b0f8 Fix backwards compatibility 2017-01-03 01:19:22 +01:00
Martin
e2c4080f23 Fix bit not being set properly 2016-11-28 02:48:40 +01:00
Martin
75bc65102a Fixup: Only set locator bit if the locator is going to be added 2016-11-28 01:20:31 +01:00
Martin
61735ccf76 Only set locator bit if the locator is going to be added 2016-11-28 01:19:55 +01:00
Martin
8e30365e91 Fix compile issues with "gcc -ansi" 2016-11-27 22:19:38 +01:00
Martin
55339a8978 Make tester and examples compile again and test script 2016-11-27 21:39:02 +01:00
Martin
224d207ce8 MiniZ ZIP64 was part of valve vogl which is MIT licensed 2016-11-21 18:17:47 +01:00
Martin
42c29103c3 Streaming ZIP creation, automatic ZIP64 switching and UTF8 filenames 2016-11-21 18:08:45 +01:00
Matthew Sitton
08d8e22672 Fix issues missed from merge. Now builds properly. 2016-06-25 12:57:06 -05:00
Matthew Sitton
3979a6de1f And finally Integrate vogl changes. 2016-06-25 12:13:28 -05:00
Matthew Sitton
d650d15974 Add vogl .clang-format and reformat library source. 2016-06-25 09:03:56 -05:00
Matthew Sitton
724de0bb0f Separate the into multiple files similar to the vogl zip64 version of the library.
If anyone wants to have a minified version of if a script could be written to do this automatically.
2016-06-25 06:43:30 -05:00