81 Commits

Author SHA1 Message Date
Nathan Moinvaziri
03e4d2213d Remove copyright years. 2023-02-16 13:14:21 -08:00
Nathan Moinvaziri
23f66e974d Fixed split disk archives being created with 0 bytes. #669
After the first disk, disks would be created with zero size. This would happen
when using MZ_ZIP_FLAG_DATA_DESCRIPTOR or MZ_ZIP_FLAG_MASK_LOCAL_INFO, because
we were changing the disk properly when going to update local file info headers.
2023-02-12 15:57:34 -08:00
Nathan Moinvaziri
848c3e3503 Removed empty lines. 2022-11-29 17:19:49 -08:00
Nathan Moinvaziri
db95894646 Updated name of project to minizip-ng. 2021-01-23 16:19:05 -08:00
Nathan Moinvaziri
70811ac6f5 Remove version number from headers. 2020-06-19 21:21:12 -07:00
Nathan Moinvaziri
dc6962b5fa Use same brace style as zlib. 2020-06-14 22:00:02 -07:00
Nathan Moinvaziri
2aa369c468 Version 2.9.3. 2020-05-21 07:31:09 -07:00
Nathan Moinvaziri
b39f7a0e89 Version 2.9.2. 2020-02-12 08:38:09 -08:00
Nathan Moinvaziri
53617b364a Always get the size of the current disk which is necessary also for seeking to proper disk when updating the local header values during append operation. 2020-01-04 17:42:51 -08:00
Nathan Moinvaziri
6c87ff43fc Allow the ability to disable use of data descriptor. Using data descriptor prevents having to seek backwards or to another disk while writing. However, the local headers aren't updated with the crc or size values. #440 2020-01-03 22:57:15 -08:00
Nathan Moinvaziri
370ab036f3 Version 2.9.1. 2019-11-15 13:24:17 -08:00
Nathan Moinvaziri
10ac291d91 Version 2.9.0. 2019-09-18 16:55:43 -07:00
Nathan Moinvaziri
fe33c3d1b6 Fixed invalid literal PRI- when compiling with C++. #416 2019-09-16 11:07:43 -07:00
Nathan Moinvaziri
32fd805440 Version 2.8.9. 2019-07-04 10:32:02 -07:00
Nathan Moinvaziri
fbfd4e82f7 Version 2.8.8. 2019-05-22 17:50:39 -07:00
Nathan Moinvaziri
64c4c7f868 Version 2.8.7. 2019-05-09 18:46:18 -07:00
Nathan Moinvaziri
4fe0687243 Version 2.8.6. 2019-04-08 13:26:32 -07:00
Nathan Moinvaziri
488f20ff1b Version 2.8.5. 2019-03-17 09:38:10 -07:00
Nathan Moinvaziri
9805ab4117 Version 2.8.4. 2019-02-14 17:16:01 -08:00
Nathan Moinvaziri
2e2f995eda Version 2.8.3. 2019-01-26 16:49:48 -08:00
Nathan Moinvaziri
2ca7f3950c Version 2.8.2. 2019-01-08 16:07:10 -08:00
Nathan Moinvaziri
1ff40343b5 Version 2.8.1. 2018-12-01 09:59:19 -08:00
Nathan Moinvaziri
5cb88b8f09 Version 2.8.0. 2018-11-24 17:59:11 -08:00
Nathan Moinvaziri
2ce1fe2732 Fixed appending for zip spanning.
Added append mode cmake unit tests.
2018-11-23 11:53:11 -08:00
Nathan Moinvaziri
ba1db16a28 Fixed bug not appending slash on to the end of filename in zip for directories.
Separated out read/write close into their own functions.
Fixed integer overflow for disk offset.
Added unit tests for erase from zip file.
2018-11-23 10:07:35 -08:00
Nathan Moinvaziri
e849627093 Move stdio to the source files that use them.
Fixed limits redefinition for windows.
Clean up headers.
2018-11-21 15:05:58 -08:00
Nathan Moinvaziri
b16ab566ef Change comments to C89 style.
Added _POSIX_C_SOURCE definition for necessary version of POSIX.
2018-11-20 16:56:21 -08:00
Nathan Moinvaziri
1ee609b759 Make inttypes.h optional. #345 2018-11-19 21:34:35 -08:00
Nathan Moinvaziri
0ecfd22443 Fixed missing time.h include. 2018-11-19 20:52:35 -08:00
Nathan Moinvaziri
fb8a1cc220 Remove forward includes. 2018-11-19 18:01:53 -08:00
Nathan Moinvaziri
264dc189b3 Revert "Remove inttypes.h." 2018-11-13 17:42:13 -08:00
Nathan Moinvaziri
b2b082c67d Version 2.7.5. 2018-11-13 15:22:15 -08:00
Nathan Moinvaziri
effc1428ff Remove inttypes.h. 2018-11-08 15:24:17 -08:00
Nathan Moinvaziri
e39032376e Added debug printing for split stream.
Fixed split stream not re-opening for current disk if closed.
2018-11-07 20:11:29 -08:00
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
915c513abe Fixed winzip aes encryption with zero byte files.
Allow greater buffer to be passed in for hashing functions.
Fixed crc32 values not being stored in zip.
When reading zip get best hash to test against in signature.
Fixed formatting.
2018-10-26 20:00:52 -07:00
Nathan Moinvaziri
c5da4987c8 Added copy stream function.
Use inttypes for snprintf in split stream.
2018-10-18 11:02:59 -07:00
Nathan Moinvaziri
ff6f2a1db6 Version 2.6.0. 2018-10-08 23:48:58 -07:00
Nathan Moinvaziri
e6b6616575 Fixed compiler warnings. 2018-10-08 22:40: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
980b3ab699 Fixed formatting. 2018-09-17 07:46:25 -07:00
Viktor Szakats
ab8507608e fix remaining strncpy() calls
to always terminate the target buffer with a zero byte.
2018-09-06 22:15:29 +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