Martin Raiber
9eedb97176
Clear whole tree to prevent uninitialized value
2022-02-27 20:08:22 +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
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
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 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
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
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
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
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
Christian Sandberg
49860a15fa
Eliminate 64-bit operations on 32-bit machines
2020-07-03 13:22:18 +02:00
Christian Sandberg
524906517d
Cache pointers to tables for speed
2020-06-23 11:51:26 +02:00
Christian Sandberg
3d000933a7
Reduce size of const data
2020-06-23 11:42:03 +02:00
Christian Sandberg
40b0612004
Skip unnecessary pointer usage
2020-06-22 19:39:52 +02:00
Christian Sandberg
8da3cbb64e
Reduce memory usage for inflate
...
Use Huffman tables with correct sizes instead of always 288
2020-06-20 17:31:32 +02:00
tamasmeszaros
d57872c77a
Fix for older cmake versions and build of examples.
2019-06-03 10:02:13 +02:00
Dmitry Eremin-Solenikov
d31e119d4d
Move comp/decomp alloc/free prototypes under guarding #ifndef
...
Function implemenations are already guarded by #ifndef MZ_NO_MALLOC, so
let's put prototypes under the same #ifndef. Also, while we are at it,
make those prototypes standard-compliant by adding void argument.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com >
2019-01-17 12:52:11 +03:00
Martin
53bfef515c
More instances of memcpy instead of cast and use memcpy per default
2018-10-27 17:14:33 +02:00
Martin
3616bf804b
Fix heap overflow to user buffer in tinfl_status tinfl_decompress
2018-06-18 22:17:43 +02:00
Michał Janiszewski
a6a989cc18
clang-format the sources
2017-03-23 08:50:08 +01:00
Martin
3b7ee5aea5
Fix compile warnings
2017-01-19 15:53:53 +01:00
Martin
4c36ab0230
Rerun clang-format
2017-01-03 01:30:38 +01:00
Martin
8e30365e91
Fix compile issues with "gcc -ansi"
2016-11-27 22:19:38 +01:00
Martin
224d207ce8
MiniZ ZIP64 was part of valve vogl which is MIT licensed
2016-11-21 18:17:47 +01:00
Matthew Sitton
08d8e22672
Fix issues missed from merge. Now builds properly.
2016-06-25 12:57:06 -05:00
Matthew Sitton
3979a6de1f
And finally Integrate vogl changes.
2016-06-25 12:13:28 -05:00
Matthew Sitton
d650d15974
Add vogl .clang-format and reformat library source.
2016-06-25 09:03:56 -05:00
Matthew Sitton
baa0e214e7
Add v1.16 beta r1 changes.
2016-06-25 08:02:20 -05:00
Matthew Sitton
724de0bb0f
Separate the into multiple files similar to the vogl zip64 version of the library.
...
If anyone wants to have a minified version of if a script could be written to do this automatically.
2016-06-25 06:43:30 -05:00