Commit Graph

252 Commits

Author SHA1 Message Date
Martin
53bfef515c More instances of memcpy instead of cast and use memcpy per default 2018-10-27 17:14:33 +02:00
Martin
91fa285a27 Fix grammar errors in ChangeLog 2018-10-27 17:12:43 +02:00
Martin
df65d5a1de Update ChangeLog 2.0.8 2018-09-19 12:48:59 +02: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
3616bf804b Fix heap overflow to user buffer in tinfl_status tinfl_decompress 2018-06-18 22:17:43 +02:00
Martin
76237898c0 Updated ChangeLog 2018-04-18 17:13:39 +02:00
Martin
3af5c82fd3 Add license, changelog, readme and example files to release zip 2018-04-18 17:12:44 +02:00
Martin
55f4dfe1d2 Incremented version 2018-04-18 17:09:01 +02:00
Martin
b344eaf775 Remove unimplemented functions 2018-04-18 16:50:36 +02:00
Martin
36b6c99f62 Incremented version 2.0.7 2018-02-20 19:03:53 +01:00
Martin
04f2169b8a Incremented version 2018-02-20 19:02:57 +01:00
Martin
14a5a1397b Merge branch 'master' of github.com:uroni/miniz 2018-02-20 19:00:19 +01:00
Martin
fef12d34f1 Remove _LARGEFILE64_SOURCE requirement from apple defines for large files 2018-02-20 18:58:32 +01:00
Martin Raiber
b01930542e Merge pull request #83 from arteniioleg/master
install library and headers
2017-11-30 12:52:09 +01:00
Martin Raiber
9c88e826a2 Merge pull request #82 from JonnyH/WIP/fix-default-level-mz_zip_writer_add_mem
Fix assert with mz_zip_writer_add_mem* w/MZ_DEFAULT_COMPRESSION
2017-11-30 12:51:58 +01:00
arteniioleg
22e4ef1b1d install library and headers 2017-11-23 14:25:55 +02: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
Martin Raiber
c17cc20c80 Merge pull request #3 from lockie/master
CMake improvements
2017-10-17 23:36:08 +02:00
Martin Raiber
0f6b199e5b Merge pull request #78 from coyote1357/master
Fix resource leak in mz_zip_reader_init_file_v2
2017-10-17 23:33:40 +02: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
Martin Raiber
aadc405b1c Merge pull request #76 from jasonrohrer/master
Fixed loads of uninitilized value errors found with Valgrind by memse…
2017-09-02 16:17:53 +02:00
Jason Rohrer
02c51d3662 Fixed loads of uninitilized value errors found with Valgrind by memsetting m_dict to 0 in tdefl_init. 2017-08-28 18:28:14 -07:00
Andrew Kravchuk
9393a95f26 Removed need in C++ compiler in cmake build 2017-08-26 03:47:07 +03:00
Andrew Kravchuk
82e5b184e4 Fixed CMAKE_BUILD_TYPE default value 2017-08-26 00:03:50 +03:00
Martin
81df2df0f6 Document mz_zip_writer_init 2.0.6 2017-07-08 13:58:18 +02:00
Martin Raiber
64d92e19ad Merge pull request #66 from unsightlygod/iterative_decompression
Iterative decompression
2017-07-08 13:41:34 +02:00
Martin
404c574eba Define processor/arch macros as zero if not set to one 2017-07-08 13:37:05 +02:00
Martin
c1f791f81b Define processor/arch macros as zero if not set to one 2017-07-08 13:34:56 +02:00
Martin
c93e4d804c Increment version 2017-07-08 13:12:42 +02:00
Martin
84e8458de0 Option to use memcpy for unaligned data access 2017-05-18 18:47:09 +02:00
Phil Greenland
78cdcb0fce Include basic tests for iterative extraction method. 2017-05-14 12:04:54 +01: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 Raiber
7ecd1b3677 Merge pull request #65 from udda/fix-png-height
Fix PNG height
2017-05-05 00:14:57 +02:00
Mario Cianciolo
a0786b126d Fix PNG height
Fixed array index where to store image height.
PNG files made using `tdefl_write_image_to_png_file_in_memory_ex()` were very tall, with a huge empty area at the end.
Since `pnghdr[22]` was assigned twice, I changed indices to store height exactly in the way width is stored (two consecutive swapped bytes). Now PNG file height is correct.
2017-04-30 23:13:09 +02:00
Martin
9b1ddf6861 Add debug configuration 2017-04-24 17:28:45 +02: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
Martin
6e915ef7fc Improve MZ_ZIP_FLAG_WRITE_ZIP64 documentation 2017-04-24 17:26:55 +02:00
Martin
11f795a19c Improve readme 2017-04-24 17:26:29 +02:00
Martin Raiber
ec028ffe66 Merge pull request #60 from janisozaur/master
Fix compilation with GCC6
2017-03-24 15:11:32 +01:00
Michał Janiszewski
a6a989cc18 clang-format the sources 2017-03-23 08:50:08 +01:00
Michał Janiszewski
3d51050db5 Set amalgamate.sh as executable 2017-03-23 08:38:27 +01:00
Michał Janiszewski
3c7177c0cb Fix misleading indentation 2017-03-23 08:38:10 +01:00
Martin
35c2d67bcf Fix compilation with the various omission compile definitions 2.0.5 2017-03-13 19:49:01 +01:00
Martin
1c6ca868d7 Fix compilation with the various omission compile definitions 2.0.4 2017-03-13 19:38:42 +01:00
Martin
2337db2f7b Fix formatting 2017-03-11 19:09:33 +01:00
Martin
3b3c258b2d Update readme/changelog 2017-03-11 19:06:16 +01:00
Martin
e72ae3f4c2 Use UTF-8 for filenames in ZIP files per default 2.0.3 2017-03-11 18:24:44 +01:00
Martin
91ce90fa17 Added callback for periodic flushes 2017-02-08 15:53:52 +01:00
Martin
460e619ae8 Compatibility with older gcc 2017-01-19 16:00:13 +01:00
Martin
e906a841c7 Fix compile warnings 2017-01-19 15:57:45 +01:00