Commit Graph

190 Commits

Author SHA1 Message Date
Martin Raiber
d6566206ce Merge pull request #176 from timgates42/bugfix_typo_purposely
docs: fix simple typo, purpsosely -> purposely
2020-12-14 20:06:48 +01:00
Tim Gates
6241bc718c docs: fix simple typo, purpsosely -> purposely
There is a small typo in miniz.h.

Should read `purposely` rather than `purpsosely`.
2020-12-08 07:06:18 +11:00
Martin Raiber
6b6b27aff2 Merge pull request #174 from randy408/bugfix
mz_zip_validate_file(): fix memory leaks
2020-11-28 10:03:15 +01:00
Martin Raiber
3a43b8c4bb Merge pull request #175 from randy408/zip_fuzzer
zip_fuzzer: omit file validation
2020-11-28 10:02:52 +01:00
Randy
864ecc8d14 zip_fuzzer: omit file validation
this is an unbounded operation
2020-11-27 02:28:21 +01:00
Randy
f52e09a208 mz_zip_validate_file(): fix memory leak on errors
https://oss-fuzz.com/testcase?key=5744008051294208
2020-11-26 02:21:57 +01:00
Martin Raiber
95795bb996 Merge pull request #173 from randy408/cifuzz
Integrate with CIFuzz (OSS-Fuzz)
2020-11-25 17:54:43 +01:00
Martin Raiber
0bac8947c5 Merge pull request #172 from leezu/patch-1
Correct zip64 ZIP archive support limitations entry
2020-11-25 00:47:40 +01:00
Leonard Lausen
90ff5d51e4 Correct zip64 ZIP archive support limitations entry
According to ChangeLog.md Zip64 format is supported since 2.0 release
2020-11-24 15:38:08 -08:00
Martin Raiber
fe4a8b78f3 Merge pull request #171 from randy408/fuzzer_updates
OSS-Fuzz integration updates
2020-11-24 19:43:19 +01:00
Randy
225354290d revert uncompress_fuzzer changes 2020-11-24 17:00:05 +01:00
Randy
b485d01faf updates to OSS-Fuzz integration
adapt more fuzz targets from zlib,
add zip fuzzer, zip dictionary.
update uncompress_fuzzer to seed the buffer length separately.
2020-11-24 16:51:30 +01:00
Randy
1cdb9afad0 Integrate with CIFuzz 2020-11-24 15:03:16 +01:00
Martin Raiber
cd65995953 Remove travis build status 2020-11-08 23:30:45 +01:00
Martin Raiber
1721df91bb Add gh actions CI 2020-11-08 23:29:35 +01:00
Martin Raiber
d1640e7c4f Merge pull request #170 from nmoinvaz/fixes/msan-error-dist
Fixed use-of-uninitialized value msan error when copying dist bytes
2020-11-08 23:23:59 +01:00
Nathan Moinvaziri
9457abb670 Fixed use-of-uninitialized value msan error when copying dist bytes with no output bytes written. 2020-11-02 17:18:01 -08:00
Martin Raiber
209ba6540c Merge pull request #168 from nmoinvaz/master
Use variable size input buffer in uncompress fuzzer.
2020-10-26 23:56:49 +01:00
Nathan Moinvaziri
1e7621d96c Use variable size input buffer in uncompress fuzzer. 2020-10-17 16:10:59 -07:00
Martin Raiber
5ebed82882 Merge pull request #164 from otreblan/master
Add pkg-config file and remove hardcoded install dirs
2020-09-16 14:20:35 +02:00
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
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
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
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