Commit Graph

338 Commits

Author SHA1 Message Date
Martin Raiber
76b3a87285
Update ChangeLog.md 2022-05-08 16:53:32 +02:00
Martin Raiber
5c9c89509c
Merge pull request #231 from nedelec/master
Fixed alignment problems on MacOS
2022-05-08 16:48:02 +02:00
Martin Raiber
719967dc82
Merge pull request #225 from randy408/zlib_flevel
deflate: write zlib FLEVEL based on compression level
2022-05-08 16:46:36 +02:00
Martin Raiber
18bc504331
Merge pull request #224 from Dialga/patch-1
Add switch case for MZ_ZIP_TOTAL_ERRORS
2022-05-08 16:44:03 +02:00
Martin Raiber
144c351f34
Update miniz_tdef.c
Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
2022-05-06 21:30:08 +02:00
Martin Raiber
bc77ea1017
Update miniz_tdef.c
Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
2022-05-06 21:30:02 +02:00
Randy
7c459c8a05
Update miniz_tdef.c
Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
2022-05-06 05:01:09 +02:00
Georgy Treshchev
118b2e3d34 Bit shift fix 2022-05-01 11:33:43 +04:00
Francois Nedelec
e7d0e216d5 Fixed alignment problems on MacOS 2022-04-01 14:34:04 +01:00
Martin Raiber
5a38f5564a Increment version in cmake 2022-02-27 20:09:11 +01:00
Martin Raiber
9eedb97176 Clear whole tree to prevent uninitialized value 2022-02-27 20:08:22 +01:00
Martin Raiber
8a7cf60c7a
Merge pull request #226 from sezero/w1
replace use of stdint.h types with mz_ variants
2022-02-09 21:36:23 +01:00
Martin Raiber
d9bd65a843
Merge pull request #227 from sezero/u0
tdefl_compress_normal: Avoid NULL ptr arithmetic UB
2022-02-09 21:35:06 +01:00
Andrius Mitkus
71ba5d12d6 Avoid NULL ptr arithmetic UB 2022-02-09 09:48:30 +03:00
Ozkan Sezer
e285002431 replace use of stdint.h types with mz_ variants 2022-02-09 09:36:50 +03:00
Randy
cd1dc96d27 deflate: write zlib FLEVEL based on compression level 2022-02-08 23:24:02 +01:00
Dialga
5245b1c52f
Add switch case for MZ_ZIP_TOTAL_ERRORS 2022-02-07 11:03:31 +13:00
Martin
842a20e586 Update ChangeLog 2022-02-06 14:58:49 +01:00
Martin
edc251cfa9 Add padding to structures so it continues to work if features differ 2022-02-06 14:57:58 +01:00
Martin
9ffbe56a73 Update ChangeLog 2022-02-06 14:39:43 +01:00
Martin
f2b59b344d Increment major version 2022-02-06 14:39:27 +01:00
Martin
0ce345c44a Disable building shared lib by default 2022-02-06 14:30:35 +01:00
Martin
0796bdbee6 Disable treating warnings as error with MSVC 2022-02-06 14:29:22 +01:00
Martin Raiber
056cc8db14
Merge pull request #159 from christiansandberg/reduced-inflate-memory-usage
Reduce memory usage for inflate
2022-02-06 14:16:40 +01:00
Christian Sandberg
60942b0f04 Initialize tree and code size tables separately 2022-01-24 09:55:56 +01:00
Christian Sandberg
8997650f5c Remove m_tables 2022-01-23 20:24:58 +01:00
Christian Sandberg
698faddd95 Minor formatting fix 2022-01-23 14:14:27 +01:00
Christian Sandberg
ff862d4596 Fix -Wshadow 2022-01-23 14:12:48 +01:00
Christian Sandberg
740049e643 Merge branch 'master' into reduced-inflate-memory-usage 2022-01-23 13:32:56 +01:00
Martin Raiber
2cd06e3f32
Merge pull request #217 from sezero/ub-fix
tinfl_decompress: avoid NULL ptr arithmetic UB:
2022-01-22 22:16:45 +01:00
Martin Raiber
f3d9e2293b
Fix return value 2022-01-22 22:14:31 +01:00
Martin Raiber
1541a11e9b
Merge pull request #220 from sezero/z64
miniz_zip: fix mz_zip_reader_extract_to_heap to read correct sizes
2022-01-22 20:12:07 +01:00
Ozkan Sezer
501a761549 miniz_zip: fix mz_zip_reader_extract_to_heap to read correct sizes
Fixes: https://github.com/richgel999/miniz/issues/218
2022-01-02 20:56:56 +03:00
Ozkan Sezer
aa70ef1644 tinfl_decompress: avoid NULL ptr arithmetic UB:
Fixes: https://github.com/richgel999/miniz/issues/216

Also see:
6b8c30e4a9
2021-12-27 10:50:32 +03:00
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