Commit Graph

201 Commits

Author SHA1 Message Date
Andreas Deininger
58254a3241 readme.md: fix broken links
ChangeLog.md: fix typo
2021-06-02 22:48:50 +02:00
Martin Raiber
9edb278d22 Merge pull request #184 from phprus/cmake-subproject
Improved cmake subproject support
2021-03-06 13:48:16 +01:00
Владислав Щапов
b7f04b700b Improved cmake subproject support
- Added code to determine whether this is a standalone project or included by other projects.
- Added option INSTALL_PROJECT to enable/disable install project.
- Replaced CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR.
2021-02-26 20:08:39 +05:00
Martin Raiber
b43f8a0c22 Merge pull request #147 from andiwand/write-with-dynamic-size
write with dynamic size
2021-02-07 22:03:46 +01:00
Martin Raiber
17d6763721 Merge pull request #154 from wdconinc/patch-1
Fix unused parameter ‘pArray’ in mz_zip_array_range_check
2021-02-07 21:41:07 +01:00
Martin Raiber
31b389ac61 Merge pull request #178 from randy408/patch-1
Update meson.build
2021-02-07 21:29:59 +01:00
Martin Raiber
fe03be2c51 Merge pull request #183 from nmoinvaz/master
Fixed MSAN use-of-uninitialized in tinfl_decompress when invalid dist.
2021-02-07 21:29:33 +01:00
Nathan Moinvaziri
60bbf6c808 Fixed MSAN use-of-uninitialized in tinfl_decompress when invalid dist is decoded. In this instance dist was 31 which s_dist_base translates as 0.
https://oss-fuzz.com/testcase-detail/4863557237473280
2021-01-30 17:05:42 -08:00
Randy
b99e5c3de3 Update meson.build 2020-12-20 22:11:45 +01:00
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
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