277 Commits

Author SHA1 Message Date
otreblan
e6faac9881 Use MINIZ_VERSION for the pkg-config version 2020-09-14 12:00:26 -05:00
otreblan
65ad3cdf66 Remove hardcoded install dirs 2020-09-14 11:56:38 -05:00
otreblan
320764e3ca Add pkg-config file 2020-09-14 11:46:49 -05:00
Martin Raiber
d34ae4a14f Merge pull request #161 from randy408/ossfuzz
Add fuzz targets for OSS-Fuzz integration
2020-07-07 15:44:54 +02:00
Randy
aa3c99a7b4 fuzz_main: fix warning 2020-07-07 15:34:08 +02:00
Randy
f33da29f61 cmake: add fuzzers to build 2020-07-07 13:56:04 +02:00
Randy
b36e55e48d ossfuzz: update build file 2020-07-07 13:45:05 +02:00
Randy
797c58be3c ossfuzz: fix typo 2020-07-07 13:14:58 +02:00
Randy
d2d7d090fa ossfuzz: fix build for uncompress_fuzzer 2020-07-07 13:12:09 +02:00
Randy
436d915546 ossfuzz: add fuzzers 2020-07-07 13:08:22 +02:00
Christian Sandberg
49860a15fa Eliminate 64-bit operations on 32-bit machines 2020-07-03 13:22:18 +02:00
Christian Sandberg
524906517d Cache pointers to tables for speed 2020-06-23 11:51:26 +02:00
Christian Sandberg
3d000933a7 Reduce size of const data 2020-06-23 11:42:03 +02:00
Christian Sandberg
40b0612004 Skip unnecessary pointer usage 2020-06-22 19:39:52 +02:00
Christian Sandberg
8da3cbb64e Reduce memory usage for inflate
Use Huffman tables with correct sizes instead of always 288
2020-06-20 17:31:32 +02:00
Martin Raiber
164c81c7d7 Merge pull request #158 from dimkr/meson
Add support for building as a Meson subproject
2020-06-20 16:39:01 +02:00
Dima Krasner
a8e9424b16 Add support for building as a Meson subproject 2020-06-19 20:58:20 +03:00
Wouter Deconinck
fa09b1f3d4 Fix unused parameter ‘pArray’ in mz_zip_array_range_check
When NDEBUG, the assert in mz_zip_array_range_check does nothing and an unused variable warning is generated at 4159f8c8c3/miniz_zip.c (L280)

This commit removes the `|| define (NDEBUG)` so when debugging is turned off, no range check is performed.
2020-04-20 11:19:09 -05:00
Martin Raiber
4159f8c8c3 Merge pull request #149 from vladtepesch/master
added uncompress2
2020-03-09 13:44:23 +01:00
vlad
ccff20b76d added uncompress2 2020-02-20 19:36:13 +01:00
Andreas Stefl
1e8c7ce810 write with dynamic size 2020-01-23 17:15:04 +01:00
Martin Raiber
e48d8bab88 Merge pull request #144 from syoyo/gcc-ansi-build-fix
ansi mode does not support double-slash comment.
2019-12-26 10:15:01 +01:00
Syoyo Fujita
a828cc329c ansi mode does not support double-slash comment. Replaced // with /* */ 2019-12-26 14:53:37 +09:00
Martin Raiber
1567c8d06c Merge pull request #143 from driazati/fixcrc
Fix missing crc guard
2019-12-14 18:26:13 +01:00
Your Name
a88d1571c1 Fix missing crc guard
This fixes a warning for an unused variable if `MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS` is on.
2019-12-13 11:22:05 -08:00
Martin Raiber
f66b3e1901 Merge pull request #142 from arabine/master
Fix warning (added cast)
2019-10-28 13:55:47 +01:00
Anthony Rabine
5108f95f58 Fix warning (added cast) 2019-10-28 13:50:42 +01:00
Martin Raiber
3a00ea8b73 Merge pull request #141 from jjlilley/jjlilley
Add #elif to enable an external mz_crc32() to be linked in.
2019-10-11 16:11:13 +02:00
jeremyl
a0dd5179db Add #elif to enable an external mz_crc32() to be linked in.
Adds '#elif defined(USE_EXTERNAL_MZCRC)' by the mz_crc32() definition
to enable the option of a user linking in an alternate crc implementation.

The main reason why this might be desired would be to use an SSE-accelerated
crc implementaiton, which would be faster, but not be reasonable to include
in this file.
2019-10-09 11:30:50 -07:00
Martin Raiber
107def8e36 Merge pull request #140 from dandrader/fixLfsCheck
Fix LFS check
2019-10-06 18:02:54 +02:00
Daniel d'Andrada
334e0d64ce Fix LFS check
Code should check for__USE_LARGEFILE64, not _LARGEFILE64_SOURCE

_LARGEFILE64_SOURCE should be used only for setting a preference
when compiling code (either explicitly or by the compiler itself).
Then, according to its value, features.h will take care define things
like __USE_LARGEFILE64 appropriately.

As a side-effect, this patch adds support for clang. When building
with clang one has to explicitly define _LARGEFILE64_SOURCE if he
want to use the *64 api.
2019-10-04 14:11:18 +02:00
Martin Raiber
0238ce2a3b Merge pull request #139 from andiwand/cmake-use-current-directories
use CMAKE_CURRENT_* directories
2019-10-01 13:38:34 +02:00
Andreas Stefl
cd99affed0 use CMAKE_CURRENT_* directories 2019-09-26 20:03:00 +02:00
Martin Raiber
bee490c712 Merge pull request #137 from dandrader/locateFileBool
mz_zip_reader_locate_file_v2 returns an mz_bool
2019-09-24 13:13:12 +02:00
Daniel d'Andrada
6ed35304fe mz_zip_reader_locate_file_v2 returns an mz_bool 2019-09-24 10:48:48 +02:00
Martin Raiber
e0c964c4a3 Merge pull request #135 from tamasmeszaros/cmake-dynlib
Add include location tolerance and stop forcing _GNU_SOURCE
2019-06-11 20:50:10 +02:00
tamasmeszaros
416f5ea723 Add include location tolerance and stop forcing _GNU_SOURCE.
_GNU_SOURCE will still be enabled if building static or shared library, but only as a PRIVATE compile definition. It will not leak into targets using miniz.
2019-06-04 09:38:33 +02:00
tamasmeszaros
e8ab1c9a6d Fix for misleading doc comment on mz_zip_reader_init_cfile function. 2019-06-03 15:48:11 +02:00
Martin Raiber
e71344bdd7 Merge pull request #134 from tamasmeszaros/cmake-dynlib
Support installation of amalgamated sources
2019-06-03 15:11:49 +02:00
tamasmeszaros
3b9a004a4f Create export script for amalgamated sources with correct version info.
Also added _GNU_SOURCE to on GNU compilers to support large files.
2019-06-03 10:44:40 +02:00
tamasmeszaros
d57872c77a Fix for older cmake versions and build of examples. 2019-06-03 10:02:13 +02:00
Martin Raiber
b713ca2b4a Merge pull request #132 from tamasmeszaros/cmake-dynlib
Use CMake export header for exporting symbols.
2019-06-02 21:30:46 +02:00
tamasmeszaros
185bc3c683 Use CMake export header for exporting symbols.
Only in shared library mode.
2019-05-28 11:57:37 +02:00
Martin Raiber
ff06fbaafc Merge pull request #131 from tamasmeszaros/cmake-dynlib
Modified cmake script to support shared library mode and find_package.
2019-05-27 18:10:45 +02:00
tamasmeszaros
1261dfa9ad Modified cmake script to support shared library mode and find_package. 2019-05-27 14:16:27 +02:00
Martin Raiber
ea41268ac9 Merge pull request #129 from rbsheth/cmake_updates
CMake updates and CMake-based amalgamation step
2019-05-23 19:55:02 +02:00
Rahul Sheth
c3e5de6699 remove bash-specific amalgamation code 2019-05-22 19:52:19 -04:00
Rahul Sheth
a3aeeb3307 fix examples with amalgamation 2019-05-22 19:25:54 -04:00
Rahul Sheth
4ec19d6731 Initial CMake update 2019-05-22 19:17:28 -04:00
Martin
a4264837ae Fix type issue 2.1.0 2019-04-11 02:35:18 +02:00