Commit Graph

239 Commits

Author SHA1 Message Date
Martin Raiber
e6a7c5daed Merge pull request #204 from DimitriPapadopoulos/codespell
Fix a couple typos found by codespell
2021-11-11 21:42:04 +01:00
Martin Raiber
66c7313326 Merge pull request #197 from ccawley2011/patch-3
Fix use of uninitialized memory in tinfl_decompress_mem_to_callback()
2021-11-11 21:39:08 +01:00
Martin Raiber
82d6810a38 Merge pull request #193 from ccawley2011/no-inflate-deflate
Add MINIZ_NO_DEFLATE_APIS and MINIZ_NO_INFLATE_APIS
2021-11-11 21:36:53 +01:00
Martin
ee4deb08fa Merge remote-tracking branch 'ccawley2011/mingw-watcom'
# Conflicts:
#	examples/example6.c
2021-11-11 21:36:15 +01:00
Martin Raiber
cb2b132b86 Merge pull request #196 from ccawley2011/patch-2
Set MINIZ_LITTLE_ENDIAN only if not set
2021-11-11 21:26:54 +01:00
Martin Raiber
591faa9574 Merge pull request #207 from SamuelMarks/c89
C89 support
2021-11-11 21:25:11 +01:00
Martin Raiber
3a387ec369 Merge pull request #208 from ell1e/fix_mingw_cross
Fix MinGW cross compilation by removing unneeded capitalization
2021-11-11 21:24:08 +01:00
Ellie
cda0b3e7f0 Fix MinGW cross compilation by removing unneeded capitalization 2021-11-11 13:38:57 +01:00
Samuel Marks
e841503cad [CMakeLists.txt] Enforce C89; [examples/example6.c] Conform to C89; [miniz_zip.c] Use lowercase <windows.h> 2021-11-10 21:59:32 -05:00
Dimitri Papadopoulos
a7961f5b4c Fix a couple typos found by codespell 2021-11-03 14:04:11 +01:00
Martin Raiber
ca1a779ee1 Merge pull request #195 from ccawley2011/patch-1
Avoid using unaligned memory access in UBSan builds
2021-10-03 13:13:13 +02:00
Martin Raiber
18da352921 Merge pull request #203 from prezi/prezi-patch-2
Support for unicode characters in paths and filenames on windows
2021-10-03 13:12:31 +02:00
Zsombor Fazekas
d9c899cea4 Use _wstat64 instead _stat64 on windows 2021-09-16 12:12:07 +02:00
Zsombor Fazekas
70c79cc9d5 Use wfopen on windows 2021-09-16 12:00:44 +02:00
Cameron Cawley
583f4f27c2 Fix use of uninitialized memory in tinfl_decompress_mem_to_callback()
Co-authored-by: sezero <sezero@users.noreply.github.com>
2021-07-25 15:36:22 +01:00
Cameron Cawley
9b89689723 Add MINIZ_NO_DEFLATE_APIS and MINIZ_NO_INFLATE_APIS 2021-07-20 20:19:32 +01:00
Cameron Cawley
f99eae6e04 Set MINIZ_LITTLE_ENDIAN only if not set 2021-07-20 20:17:06 +01:00
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