277 Commits

Author SHA1 Message Date
Cameron Cawley
fc0c0f585e Avoid using unaligned memory access in UBSan builds 2021-07-20 18:22:34 +01:00
Cameron Cawley
78ae375016 Fix "'&array' may not produce intended result" warnings with OpenWatcom
Co-authored-by: sezero <sezero@users.noreply.github.com>
2021-07-20 18:08:11 +01:00
Cameron Cawley
f542e6df73 Fix "Comparison result always 0" warnings with OpenWatcom 2021-07-20 18:05:16 +01:00
Cameron Cawley
46347635c8 Fix building example6 with C89 compilers 2021-07-20 18:05:16 +01:00
Cameron Cawley
c0aad72d46 Use _ftelli64, _fseeki64 and stat with MinGW32 and OpenWatcom 2021-07-20 18:04:52 +01:00
Martin
08f2c2d7e3 Fix test 2021-06-27 23:22:31 +02:00
Martin
cb97387d20 Add release workflow 2.2.0 2021-06-27 22:44:34 +02:00
Martin
d301afc498 Add release workflow 2021-06-27 22:41:31 +02:00
Martin
8ac52a6cae Increment version 2021-06-27 22:39:44 +02:00
Martin
2281a42c77 Add release workflow 2021-06-27 22:38:35 +02:00
Martin
17b4f33dde Update changelog 2021-06-27 22:25:12 +02:00
Martin
f2df122f6f Create release zip via cmake 2021-06-27 22:25:00 +02:00
Martin
6e1754595a Merge branch 'master' of github.com:richgel999/miniz 2021-06-27 21:32:08 +02:00
Martin Raiber
0c905aec41 Merge pull request #169 from ashtul/patch-1
remove redundant condition
2021-06-27 21:28:00 +02:00
Martin Raiber
ee598099cb Merge pull request #186 from auzkok/master
Make cmake recognize FetchContent subproject
2021-06-27 21:26:10 +02:00
Martin Raiber
61b202f26a Merge pull request #189 from maroneze/master
avoid use of uninitialized value in tdefl_record_literal
2021-06-27 21:25:23 +02:00
Martin Raiber
a145b53b6a Merge pull request #191 from deining/broken-links
readme.md: fix broken links
2021-06-27 21:24:54 +02:00
Andreas Deininger
58254a3241 readme.md: fix broken links
ChangeLog.md: fix typo
2021-06-02 22:48:50 +02:00
Andre Maroneze
cf2833fdc1 avoid use of uninitialized value in tdefl_record_literal
In tdefl_record_literal, the following expression may read an uninitialized
value in the m_pLZ_flags field:

*d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> 1);

By explicitly initializing it, we avoid possible undefined behaviors.
Issue found with Frama-C.
2021-05-25 15:23:39 +02:00
Vojtěch Šamla
57176046b5 Make cmake recognize FetchContent subproject 2021-05-19 10:37:15 +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
75744d32d4 Add flag to set (compressed) size in local file header 2021-02-08 13:49:57 +01: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
ariel shtul
8410f3c640 remove redundant condition
L#1067 asserts that (match_len >= TDEFL_MIN_MATCH_LEN)
2020-11-01 12:02:06 +02: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