Mark Adler
5dc7681ff1
Fix version numbering for Darwin shared library.
2023-08-18 16:01:06 -07:00
Mark Adler
3a98b57e55
Change version number on develop branch to 1.3.0.1.
2023-08-18 13:23:07 -07:00
Mark Adler
09155eaa2f
zlib 1.3
2023-08-18 01:45:36 -07:00
Mark Adler
899ffefb19
Use original make and options when Makefile runs make.
...
Also avoid the use of the -C option for non-GNU make.
2023-08-17 23:52:24 -07:00
Mark Adler
25bbd7f5a6
Avoid uninitialized and unused warnings in contrib/minizip.
2023-08-17 22:35:43 -07:00
Mark Adler
e13289e307
Fix typo in preceding reversion commit.
2023-08-17 17:40:56 -07:00
Mark Adler
f5ae600cc7
Revert flipping of load flags in Makefile.in for z/OS.
...
It looked innocuous enough and worked on macOS, but failed on
Ubuntu.
2023-08-17 17:34:11 -07:00
OldWorldOrdr
daf27aed08
Look for a cross-compile libtool first in configure.
...
Permit cross-compilation for Darwin.
2023-08-17 17:12:52 -07:00
Bruno S Marques
9889e98868
Avoid cmake deprecation warning.
2023-08-17 17:11:11 -07:00
Mark Adler
22fc20898b
Clarify requirement in zlib.h to avoid multiple flush markers.
2023-08-17 17:11:11 -07:00
Mark Adler
5f52b25059
Move load flags before object file in Makefile.in for Z/OS.
2023-08-17 17:10:29 -07:00
Bastian Germann
efc9c7b801
Add license to contrib/untgz.
...
A zlib license was agreed to by the authors.
2023-08-17 17:10:12 -07:00
Mark Adler
d524e2a818
zlib now uses ANSI C function prototypes, so zlib2ansi not needed.
2023-08-17 14:41:53 -07:00
Mark Adler
d982514782
Fix bug when using gzflush() with a very small buffer.
2023-08-14 17:01:54 -07:00
Dimitri Papadopoulos
6951bc609b
Fix typos in contrib/ada.
2023-08-14 08:17:22 -07:00
Mark Adler
89ef46ba09
Remove redundant includes in minizip.
2023-08-13 17:46:47 -07:00
Mark Adler
384e50eea4
Remove TRYFREE macro from minizip.
2023-08-13 17:43:36 -07:00
Dimitri Papadopoulos
c97a8f1e67
Replace gcc-9 with gcc-11 for macOS testing.
...
At some point, macos-latest stopped supporting gcc-9, and moved to
gcc-11 and gcc-12.
2023-08-13 17:27:04 -07:00
Andrzej Hunt
981ee7570a
Suppress MSAN detections in deflate's slide_hash().
...
slide_hash() knowingly reads potentially uninitialized memory, see
comment lower down about prev[n] potentially being garbage. In
this case, the result is never used.
2023-08-12 13:15:21 -07:00
Mark Adler
1411ccafc0
Add memory sanitizer to configure (--memory).
...
This also adds --address for the address sanitizer, in addition to
the existing --sanitizer. -fno-omit-frame-pointer has been added
for both sanitizers to improve the error reporting.
2023-08-12 11:03:46 -07:00
Mark Adler
7dd6aa7245
Fix bug when gzungetc() is used immediately after gzopen().
2023-08-11 10:59:03 -07:00
Dimitri Papadopoulos
c7ddcc2e0e
Fix some spelling errors.
2023-08-03 13:53:24 -07:00
Mark Adler
2bcc748735
Add minizip testing to Makefile.
2023-08-03 12:38:41 -07:00
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.
2023-08-03 11:43:34 -07:00
Gilles Vollant
aa154e3da0
Support Haiku in minizip.
2023-08-03 11:17:07 -07:00
Xiang Xiao
f679a939d3
Correct dummy filetime() prototype in minizip.c.
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-03 11:02:39 -07:00
Mark Adler
b3f23f7fb7
Match sign of printf directive to sign of argument in testzlib.
2023-07-29 23:58:11 -07:00
Mark Adler
dcd0d86b9e
Match sign of printf directive to sign of argument in minizip.
2023-07-29 23:55:48 -07:00
Mark Adler
3061e5013c
Fix logic error in minizip argument processing.
2023-07-29 23:51:22 -07:00
Dimitri Papadopoulos
379bbda363
Fix typos found by codespell in minizip
2023-07-29 23:44:25 -07:00
Mark Adler
e0bd0ad6e4
Fix reading disk number start on zip64 files in minizip.
2023-07-29 23:34:26 -07:00
Gilles Vollant
7b28ecc89d
Remove duplicated code #806
2023-07-29 23:20:12 -07:00
RedworkDE
f209ca7be7
minizip: Fix being unable to open empty zip file
2023-07-29 23:13:45 -07:00
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.
2023-07-29 22:13:09 -07:00
Mark Adler
a88f727dbe
Document in zlib.h the initialization of stream fields by the Init
...
and Reset functions.
2023-07-10 11:27:50 -07:00
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.
2023-05-16 20:28:59 -07:00
Paul Marquess
48c3741002
Remove duplicate "the" in zlib.h.
2023-05-01 14:06:43 -07:00
Mark Adler
904016e851
Update Java and Perl links in README.
2023-05-01 14:02:34 -07:00
Mark Adler
b8a8373ec1
Fix test/example.c to work with FORCE_STORED.
2023-04-18 00:08:44 -07:00
Mark Adler
3365464851
Fix warnings on test/infcover.c.
2023-04-17 20:21:58 -07:00
Mark Adler
05527a1b1e
Fix cast in minizip's ioapi.c for Windows.
2023-04-17 14:35:40 -07:00
Mark Adler
9b962a45dd
No include file is needed for __int64 type on Windows.
2023-04-17 14:35:17 -07:00
Mark Adler
66588683b3
Remove use of OF() from contrib/untgz and render it compilable.
2023-04-15 22:56:43 -07:00
Mark Adler
bf2578be2d
Remove K&R function definitions from contrib/minizip.
2023-04-15 22:56:37 -07:00
Mark Adler
c4aa356742
Remove K&R function definitions from infback9.
2023-04-15 21:18:52 -07:00
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.
2023-04-15 21:17:31 -07:00
Mark Adler
5799c14c85
Turn off C2X warning about deprecated K&R function syntax.
...
This is a temporary workaround before excising the K&R prototypes.
2023-04-13 20:09:52 -07:00
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().
2023-04-13 15:41:32 -07:00
Mark Adler
eb0e038b29
Rewrite of zran in examples. See version history in zran.c.
2023-02-18 20:53:39 -08:00
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.
2023-02-17 00:06:32 -08:00