51 Commits

Author SHA1 Message Date
Nathan Moinvaziri
c47090678d Version 2.7.4. 2018-11-06 21:12:16 -08:00
Nathan Moinvaziri
826113fd6c Version 2.7.3. 2018-11-04 12:52:58 -08:00
Nathan Moinvaziri
888e8a7324 Version 2.7.2. 2018-11-02 17:47:53 -07:00
Nathan Moinvaziri
54dffe95e9 Version 2.7.1. 2018-11-01 10:40:24 -07:00
Nathan Moinvaziri
a221da4ae0 Version 2.7.0. 2018-10-28 16:47:53 -07:00
Nathan Moinvaziri
05e03cad8e Added additional error codes to aid in debugging. 2018-10-28 16:15:13 -07:00
Nathan Moinvaziri
ff6f2a1db6 Version 2.6.0. 2018-10-08 23:48:58 -07:00
Nathan Moinvaziri
fe145502a6 Fixed compiler warnings. 2018-10-08 23:32:38 -07:00
Nathan Moinvaziri
ca8059ef61 Version 2.5.4. 2018-09-30 10:44:16 -07:00
Nathan Moinvaziri
825bfb8fbf Version 2.5.3. 2018-09-18 20:34:01 -07:00
Nathan Moinvaziri
e09ea0e515 Merge branch 'master' into dev 2018-09-17 07:44:45 -07:00
Antoine Cœur
dd54b153c0 Fix minor typo 2018-09-11 09:59:57 +08:00
Viktor Szakats
e7215072a0 enable warnings for gcc/clang, misc minor fixes
* enable -W -Wall for gcc and clang
* fix strncpy() calls that may potentially leave the target buffer without
  a terminating zero byte (in mz_zip_rw.c)
* fix warnings
* remove const from mz_path_remove_filename() parameter,
  the function is writing the passed buffer
* fix pedantic warnings (in mz_strm_buf.c):
  warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
* fix spaces at EOL
* fix a redefinition warning for HAVE_ARC4RANDOM_BUF on macOS
2018-09-04 22:58:02 +00:00
Nathan Moinvaziri
85d36c5e83 Clean up includes. #306 2018-08-31 16:43:41 -07:00
Nathan Moinvaziri
5d9f95fca1 Fixed code analysis warnings. 2018-08-30 16:22:25 -07:00
Nathan Moinvaziri
351b14e512 Version 2.5.2. 2018-08-27 19:06:59 -07:00
Nathan Moinvaziri
2b3cd16b6f Version 2.5.1. 2018-08-18 08:14:27 -07:00
Nathan Moinvaziri
c98dec4291 Version 2.5.0. 2018-08-15 07:37:30 -07:00
Nathan Moinvaziri
9a170d4d60 Added zip reader/writer class to encapsulate a lot of functionality.
Added create/delete functions for zip class.
Simplify locating an entry by filename.
Added more advanced functions for locating an entry based on callback decision.
Change default mem grow size to 64kb since we have unzOpen_MZ and zipOpen_MZ. #283
2018-08-13 23:07:42 -07:00
Nathan Moinvaziri
0f8d91101b Version 2.4.0. 2018-08-05 10:33:42 -07:00
Nathan Moinvaziri
a8f4a09de6 Version 2.3.9. 2018-07-26 17:56:05 -07:00
Nathan Moinvaziri
ae724eff61 Version 2.3.8. 2018-07-14 09:53:56 -07:00
Nathan Moinvaziri
f873eccdd2 Version 2.3.7. 2018-07-13 08:31:40 -07:00
Nathan Moinvaziri
ffa830f684 Version 2.3.6. 2018-07-11 16:34:01 -07:00
Nathan Moinvaziri
155f8b52b2 Version 2.3.5. 2018-07-09 08:13:28 -07:00
Nathan Moinvaziri
b70b824b19 Version 2.3.4. 2018-06-19 12:30:12 -07:00
Nathan Moinvaziri
7bdfbf4699 Version 2.3.3. 2018-06-10 09:09:07 -07:00
Nathan Moinvaziri
669f5a3086 Fixed buffered stream not being reset for reading after close.
Added ability to get buffer length for memory stream.
2018-05-31 13:56:32 -07:00
Nathan Moinvaziri
30e859be0b Version 2.3.2. 2018-05-29 08:48:05 -07:00
Nathan Moinvaziri
e1aad8c445 Version 2.3.1. 2018-05-09 19:48:55 -07:00
Nathan Moinvaziri
408940f16c Fixed more warnings. #263 2018-05-09 09:42:31 -07:00
Nathan Moinvaziri
a4b83e8e95 Version 2.3.0. 2018-05-03 17:59:04 -07:00
Nathan Moinvaziri
92c8d77cfb
Merge pull request #262 from vszakats/warn2
silence various warnings
2018-05-02 20:04:57 -07:00
Nathan Moinvaziri
5244fc00c4 Added MZ_UNUSED #262
Added #define for malloc and free. #249
2018-05-02 20:01:35 -07:00
Viktor Szakats
4c76400cce silence various warnings
- unused parameters
- trivial const stripping cases
- missing NULL initializers from vtbls
- missing static scope for vtbls

Missing newlines at EOF addressed in a separate PR.
It's be nice to replace `ZIP_UNUSED var` and `(void)var`
with a global and non-gcc-specific solution, such as:
   #define MZ_UNUSED(symbol)  (void)symbol
2018-05-02 21:40:29 +00:00
Viktor Szakats
915b82e95b remove whitespace @ eol 2018-04-24 10:02:39 +00:00
Nathan Moinvaziri
ad8e3dd4b1 Version 2.2.9. 2018-04-18 20:54:52 -07:00
Nathan Moinvaziri
a43eb98099 Remove src directory. 2018-03-27 20:37:53 -07:00
Nathan Moinvaziri
24ef270bbe Move source files to src directory. 2017-10-16 19:30:24 -07:00
Nathan Moinvaziri
00cca9f511 Made PKWARE traditional encryption optional.
Added support for disk splitting into the minizip and miniunz sample apps.
Removed change_dir function from os helpers since it is no longer needed and changing dir causes problems when trying to find the next split archive.
Cleaned up #defines and pushed more into mz.h which was previously named mz.h
Removed NOUNCRYPT and NOCRYPT and instead implemented HAVE_CRYPT which can be configured via CMake USE_CRYPT.
Fixed issues unzipping non-split archives.
Fixed return value on mz_zip_entry_write.
2017-10-16 07:37:11 -07:00
Nathan Moinvaziri
f7f1312bd0 Reduce the size of the buffers. 2017-10-15 22:22:19 -07:00
Nathan Moinvaziri
016ad474e3 Fixed problems flushing zlib, lzma, and bzip2 streams.
Added generic property cb for getting/setting int values in streams.
Added support for disk splitting (write-only at the moment)
2017-10-09 23:36:30 -07:00
Nathan Moinvaziri
1e3300f758 Allow retrievable of interfaces for help for compatibility layer. 2017-10-08 21:48:28 -07:00
Nathan Moinvaziri
aa323f508d Added ability for minizip cmd tool to add directories to zip files.
Split out os specific functions into their own files instead of as part of stream.
2017-10-05 23:32:57 -07:00
Nathan Moinvaziri
eb5d73037a Normalize integer types. 2017-10-05 21:26:34 -07:00
Nathan Moinvaziri
973457dac8 Added LZMA, BZIP2, and AES command line params to zip cmd tool.
Clean up some logic in the zip cmd tool.
Fixed zipping to non-existant directory.
Fixed passthru stream shouldn't open or close base streams.
Changed make_dir functions to succeed if dir exists.
Fixed compression method check for zip open functions.
Fixed wrong level being passed to bzip2.
Removed unused price_tablegen.c.
Updated CMakeLists.
Added travis yml.
2017-10-05 18:45:23 -07:00
Nathan Moinvaziri
c1203c4734 Fixed dereference of null pointer. (Issue #166) 2017-10-05 07:39:35 -07:00
Nathan Moinvaziri
45837b5cef Added version information to header comments. 2017-10-05 07:34:59 -07:00
Nathan Moinvaziri
32efd9bb5f Fixed compiler errors and warnings on mac.
Added liblzma project for mac.
2017-10-05 00:02:07 -07:00
Nathan Moinvaziri
41cfdcb45f Fixed includes. 2017-10-04 22:10:11 -07:00