Martin
a4264837ae
Fix type issue
2019-04-11 02:35:18 +02:00
Martin
25de35faec
Remove check that path of file added to archive contains ':' or '\'
2019-03-07 14:37:56 +01:00
Martin
4d1d5b6771
Merge branch 'master' of github.com:richgel999/miniz
2019-03-07 14:08:22 +01:00
Martin Raiber
034f0228eb
Merge pull request #122 from FrancescAlted/fix-msvc-warning2
...
More fixes for warnings MSVC
2019-03-07 14:06:42 +01:00
Martin
6db3c0d290
Don't warn if _LARGEFILE64_SOURCE is not defined
2019-03-07 14:04:15 +01:00
Francesc Alted
96f0da1db9
Yet another fix
2019-03-06 14:34:39 +01:00
Francesc Alted
93c6567773
More fixes for MSVC
2019-03-06 14:07:45 +01:00
Francesc Alted
2b45f89867
Fix a MSVC 2013 warning
2019-03-06 09:51:03 +01:00
paul
45a080c050
Fix large file support under Windows
...
Under Windows _stat maps to _stat64i32 which only supports max int32_t file sizes.
Change to _stat64 which uses 64bit file sizes and file modification times.
2019-01-23 12:36:25 +10:00
Zach DeVito
a3ca94f833
guard memcpy when n == 0 because buffer may be NULL
2018-11-29 16:56:13 -08:00
Martin
9ce0d0ddff
Fix out of bounds read while reading Zip64 extended information
2018-11-11 19:11:47 +01:00
Martin
306edd2022
New function to read files via callback functions when adding them
2018-11-11 19:10:35 +01:00
Martin
46cdde2ac5
Fix corrupt archive if uncompressed file smaller than 4 byte and file is added by mz_zip_writer_add_mem*
2018-07-10 22:31:13 +02:00
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