Martin
13b21dddc7
Remove total files check (its 32-bit uint)
...
This fixes a compiler warning. The check didn't do
anything since m_total_files is a 32-bit uint and
MZ_UINT32_MAX is actually a valid value.
2021-12-11 12:59:21 +01:00
Martin
a956b4c753
Fix MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_UTF8 not being set
2021-12-11 12:51:50 +01:00
Martin
ecbbbe0138
Fix function declaration if MINIZ_NO_STDIO is used
2021-11-28 18:38:56 +01:00
Martin
72e7267054
Fix unaligned pointer access
2021-11-28 18:37:55 +01:00
Martin
12b78b6d5a
Fix function definitions
...
Fix function definitions tdefl_compressor_alloc(void) and
tinfl_decompressor_alloc(void) to not accept any amount of arguments.
2021-11-28 18:36:40 +01:00
Martin
2beb69d0a5
Don't use unaligned stores and loads per default
2021-11-28 18:35:46 +01:00
Martin
0a88083589
Improve endianess detection
2021-11-28 18:35:19 +01:00
Martin
3e5e488ba9
Use level_and_flags after MZ_DEFAULT_COMPRESSION has been handled
2021-11-28 18:08:27 +01:00
Martin
75c948a1dd
Only define MINIZ_EXPORT if not already defined
2021-11-28 17:35:49 +01:00
Martin
b4108c6fcf
Adjust usage text
...
Miniz has a history of being a single header library. Nowadays this
might be less important. So clarify that the library can be used
via other ways.
2021-11-28 17:26:16 +01:00
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
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