Mark Adler
2bcc748735
Add minizip testing to Makefile.
1 year ago
Eugene Golushkov
be7aa11551
Read multiple bytes instead of byte-by-byte in minizip unzip.c.
...
Use a single ZREAD64 call in the unz64local_getShort/Long/Long64
implementation, rather than read it byte by byte.
1 year ago
Gilles Vollant
aa154e3da0
Support Haiku in minizip.
1 year ago
Xiang Xiao
f679a939d3
Correct dummy filetime() prototype in minizip.c.
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
1 year ago
Mark Adler
b3f23f7fb7
Match sign of printf directive to sign of argument in testzlib.
1 year ago
Mark Adler
dcd0d86b9e
Match sign of printf directive to sign of argument in minizip.
1 year ago
Mark Adler
3061e5013c
Fix logic error in minizip argument processing.
1 year ago
Dimitri Papadopoulos
379bbda363
Fix typos found by codespell in minizip
1 year ago
Mark Adler
e0bd0ad6e4
Fix reading disk number start on zip64 files in minizip.
1 year ago
Gilles Vollant
7b28ecc89d
Remove duplicated code #806
1 year ago
RedworkDE
f209ca7be7
minizip: Fix being unable to open empty zip file
1 year ago
Mark Adler
a566e156b3
Avoid compiler complaints if _TIME_BITS defined when building zlib.
...
zlib does not use time_t, so _TIME_BITS is irrelevant. However it
may be defined anyway as part of a sledgehammer indiscriminately
applied to all builds.
1 year ago
Mark Adler
a88f727dbe
Document in zlib.h the initialization of stream fields by the Init
...
and Reset functions.
1 year ago
Mark Adler
263a982866
Correct comment in zlib.h on os setting in gzip header.
...
The comment said that the os is set to 255, when in fact it has
been set to the current os since zlib 1.2.3. Or at least our best
guess at the os made at compile time.
2 years ago
Paul Marquess
48c3741002
Remove duplicate "the" in zlib.h.
2 years ago
Mark Adler
904016e851
Update Java and Perl links in README.
2 years ago
Mark Adler
b8a8373ec1
Fix test/example.c to work with FORCE_STORED.
2 years ago
Mark Adler
3365464851
Fix warnings on test/infcover.c.
2 years ago
Mark Adler
05527a1b1e
Fix cast in minizip's ioapi.c for Windows.
2 years ago
Mark Adler
9b962a45dd
No include file is needed for __int64 type on Windows.
2 years ago
Mark Adler
66588683b3
Remove use of OF() from contrib/untgz and render it compilable.
2 years ago
Mark Adler
bf2578be2d
Remove K&R function definitions from contrib/minizip.
2 years ago
Mark Adler
c4aa356742
Remove K&R function definitions from infback9.
2 years ago
Mark Adler
e9d5486e66
Remove K&R function definitions from zlib.
...
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
2 years ago
Mark Adler
5799c14c85
Turn off C2X warning about deprecated K&R function syntax.
...
This is a temporary workaround before excising the K&R prototypes.
2 years ago
Mark Adler
7e6dc429af
Add a NOPRIME #define to zran.c to not use inflatePrime().
...
This supports zlib versions earlier than 1.2.3 (July 2005), as
well as incomplete clones of zlib that do not have inflatePrime().
2 years ago
Mark Adler
eb0e038b29
Rewrite of zran in examples. See version history in zran.c.
2 years ago
Mark Adler
12b345c430
Assure that inflatePrime() can't shift a 32-bit integer by 32 bits.
...
The inflate() functions never leave state->bits greater than 24, so
an inflatePrime() call could not cause this. The only way this
could have happened would be by using inflatePrime() to fill the
bit buffer with 32 bits, and then calling inflatePrime() a *second*
time asking to insert zero bits, for some reason. This commit
assures that a shift by 32 bits does not occur even in that case.
2 years ago
Mark Adler
fa8cd50ada
Make z_size_t 64 bits when compiling on Windows with Z_SOLO.
...
Z_SOLO defines z_size_t as an unsigned long. However Windows and
MinGW-w64 are LLP64, where a long is 32 bits, but a size_t is 64
bits. This makes z_size_t, used by adler32_z() and crc32_z(), 64
bits on those systems.
2 years ago
Mark Adler
a9b4c1de37
Update zlib_how.html to match the web page, and add a license.
2 years ago
Mark Adler
02a6049eb3
Fix crash when gzsetparams() attempted for transparent write.
...
gzsetparams() now returns a Z_STREAM_ERROR in this case.
2 years ago
Mark Adler
e554695638
Fix bug in deflateBound() for level 0 and memLevel 9.
...
memLevel 9 would cause deflateBound() to assume the use of fixed
blocks, even if the compression level was 0, which forces stored
blocks. That could result in a bound less than the size of the
compressed data. Now level 0 always uses the stored blocks bound.
2 years ago
Mark Adler
76820e4107
Update broken article link in README.
...
Signed-off-by: Marcus Müller <mueller_sourcecodinglib@baseband.digital>
2 years ago
Mark Adler
41fda48fc2
Change version number on develop branch to 1.2.13.1.
2 years ago
Mark Adler
04f42ceca4
zlib 1.2.13
2 years ago
Nathan Moinvaziri
aefaf43b28
CI: Add instance for GCC on Windows.
2 years ago
Nathan Moinvaziri
d4fb7dd805
CI: Add instances for S390X using QEMU in configure workflow.
2 years ago
Nathan Moinvaziri
2a9cb5ae6e
CI: Add instance for Clang on macOS in configure workflow.
2 years ago
Nathan Moinvaziri
f5ceeb964d
CI: Add instances for PPC using QEMU in configure workflow.
2 years ago
Nathan Moinvaziri
da6f1623c1
CI: Run test applications against QEMU.
2 years ago
Nathan Moinvaziri
b85c172e1d
CI: Add instances for ARM using QEMU in configure workflow.
2 years ago
Nathan Moinvaziri
76f3536af8
CI: Add instance for GCC -O3 on Ubuntu in cmake workflow.
2 years ago
Nathan Moinvaziri
e029de6080
CI: Run infcover during test runs.
2 years ago
Nathan Moinvaziri
594e8e8f62
CI: Upload build errors on failure.
2 years ago
Nathan Moinvaziri
462986f38e
CI: Make in-source builds default so we can upload failure logs.
2 years ago
Mark Adler
723abd54d8
Minor formatting changes in configure.
...
No code changes.
2 years ago
Mark Adler
0091cb0281
Fix linking on AIX with gcc.
2 years ago
Mark Adler
29fd715fd0
Turn off RWX segment warnings on sparc systems.
2 years ago
Mark Adler
40c5a9bc06
Find other BSD's without *64 functions in contrib/minizip/ioapi.h.
2 years ago
Mark Adler
2bb4961990
Avoid C89 warning in contrib/minizip/crypt.h.
2 years ago