Mark Adler
ef24c4c750
Reject invalid MAX_WBITS values at compile time.
2024-11-08 19:37:34 -08:00
AlexisWilke
6d3a66a11a
Avoid attempting to redefine z_const in zconf.h.
2024-10-13 17:40:35 -07:00
Oscar Lesta
64191119d8
Add Haiku to configure for proper LDSHARED settings.
2024-10-07 07:28:11 -07:00
Mark Adler
d476828316
Repair github workflows for their updated macOS runner gcc name.
2024-09-01 13:35:20 -07:00
Mark Adler
f7d01aae6e
Avoid out-of-bounds pointer arithmetic in inflateCopy().
...
Though it does not matter for code correctness, clang's UBSan
injects code that complains about computing a pointer from an array
where the result is out-of-bounds for that array, even though the
pointer is never dereferenced. Go figure. This commit avoids that
possibility when computing distcode in inflateCopy().
2024-09-01 13:17:29 -07:00
Mark Adler
2968a496d9
Remove unneeded dependency on limits.h in examples/zran.c.
2024-09-01 13:17:29 -07:00
Mark Adler
fff132fe7c
Avoid the use of a reserved macro name in contrib/minizip/ioapi.h.
2024-09-01 13:16:26 -07:00
Mark Adler
545f194963
Add old gcc ULONG_LONG_MAX macro to find a 64-bit type in zutil.h.
2024-07-31 22:33:12 -07:00
Mark Adler
4cacc3562b
Add header file dependencies to contrib/minizip/Makefile.
2024-07-31 22:32:56 -07:00
Mark Adler
be24a8f4ca
Avoid use of stdint.h in contrib/minizip.
2024-07-31 22:32:47 -07:00
Mark Adler
164b8e3c9f
Avoid use of uintmax_t in enough.c.
2024-07-29 14:30:50 -07:00
Meiye-lj
3f44e55d5d
Add required gzguts.h dependencies in Makefile.in.
2024-07-29 00:37:16 -07:00
Mark Adler
ceadaf28df
Fix test/infcover.c function prototype when ZLIB_CONST defined.
2024-07-11 09:22:47 -07:00
Mark Adler
3adaa095a7
One more correction for deflateUsed() bits in stored case.
2024-07-05 23:04:59 -05:00
Mark Adler
884e0c0809
Correct used bits from deflateUsed() for deflate_stored() case.
2024-07-05 00:48:56 -05:00
Mark Adler
e011d8c164
Add deflateUsed() function to get the used bits in the last byte.
...
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
2024-07-01 19:34:40 -05:00
Ram Shanker
534864bccd
Add build folder to .gitignore.
...
A library is usually expected to be built in a folder /build at
its root. Whenever this repository is added as a submodule of
another project and compiled, git shows all the generated files as
changes. To suppress those git messages, this ignores the build
folder.
2024-06-28 23:03:38 -05:00
Mark Adler
7e6f0784cc
Remedy conflict between libzip and minizip zip.h.
...
minizip.pc.in would add @include@/minizip to the include path,
which would permit simply #include <zip.h> to use minizip. However
that conflicts with the zip.h from libzip that is put in the root
include directory. This now does not add /minizip to the include
path. Now when using pkg-config, #include <minizip/zip.h> must be
used, where #include <zip.h> would be used for libzip. This is an
incompatible change with the previous state. Users of minizip and
pkg-config will need to update their code. #include <unzip.h> will
need to be updated to #include <minizip/unzip.h> as well.
2024-06-04 09:36:01 -07:00
Mark Adler
0f3b7b9595
Correct typo in zlib.h comment.
2024-05-16 19:07:00 -07:00
Matthieu Longo
1b70083bed
Replace autotools macro AC_HELP_STRING with AS_HELP_STRING.
...
In minizip's configure.ac. AC_HELP_STRING is obsolete.
2024-04-29 18:14:17 -07:00
Lwisce Zeng
2ba25b2dda
Use z_const for setting msg to literal strings.
2024-04-01 11:49:05 -07:00
Mark Adler
c5e87dcdef
Make z_off_t 64 bits by default.
2024-03-31 16:34:43 -07:00
qyt
4f8a17e8cb
Add -fPIC to compiler options for static library build on Android.
2024-03-29 18:36:16 -07:00
Mark Adler
0f51fb4933
Avert minizip warnings for MSVC.
2024-03-29 12:20:37 -07:00
Mark Adler
d201f04c72
Avoid conversion warning on 32-bit architectures in minizip.
2024-03-22 22:47:36 -07:00
Mark Adler
90c677bc25
Use long long offsets for MinGW.
2024-03-22 22:29:01 -07:00
Alexander Miller
f02ea29e5f
Improve detection of UNIX-style systems in minizip.
...
Not all toolchains on UNIX-style operating systems predefine
"unix". For example, it's missing on NetBSD, OpenBSD/gcc, AIX,
HP-UX. There is no single macro defined everywhere, but checking
both "__unix__" and "__unix" should cover everything except macOS,
which is already checked for using "__APPLE__".
Note that case sensitivity should default to off on macOS and
cygwin, so the check there is different.
2024-03-16 11:18:50 -07:00
Mark Adler
9f418e1028
Update old comment in inflate.h.
2024-03-15 17:49:20 -07:00
Mark Adler
99b229487c
Avoid signed shift in minizip zip.c.
2024-03-12 13:40:57 -07:00
Mark Adler
f60ce91139
Improve random number seeding in skipset.h.
2024-03-10 23:21:10 -07:00
Mark Adler
4a5e3e7d25
Add zipAlreadyThere() to minizip zip.c to help avoid duplicates.
2024-03-10 00:37:23 -08:00
Mark Adler
54e205f878
Permit changing minizip Makefile optimization with CFLAGS.
2024-03-09 23:53:44 -08:00
Mark Adler
a8c321be84
Make deflateBound() more conservative and handle Z_STREAM_END.
2024-03-09 23:53:37 -08:00
Mark Adler
72d6aa2672
Reduce Windows header inclusion to speed up compilation.
2024-02-28 18:46:54 -08:00
Mark Adler
6544c3ecb7
Use lseek under WinCE.
2024-02-13 08:00:40 -08:00
Mark Adler
35175f2c0e
Remove conversion warning from msdos/Makefile.dj2.
2024-02-12 00:33:15 -08:00
Mark Adler
5c42a230b7
Correct argument types for 64-bit combine functions.
2024-02-11 15:42:08 -08:00
Mark Adler
04134633fa
Use 64-bit offsets in DJGPP.
2024-02-11 15:37:46 -08:00
Mark Adler
c983609168
Include unistd.h on DJGPP.
2024-02-10 20:06:15 -08:00
pmqs
0e95839324
Add github workflow to build with all available C standards.
2024-02-10 10:33:23 -08:00
pmqs
d9243a0f06
Add warnings and error on warning to configure and cmake tests.
2024-02-10 09:27:55 -08:00
Mark Adler
fd5fe8b17e
Further address Microsoft deprecation warnings.
2024-02-09 20:11:54 -08:00
Mark Adler
ceac32f156
Keep lines short in gzread.c.
2024-02-09 20:11:39 -08:00
Mark Adler
1bff6f0fd5
Avoid signedness change warning in test/minigzip.c.
2024-02-09 20:11:39 -08:00
Mark Adler
7a7202de35
Correct a variable type in deflate.c.
2024-02-09 20:11:18 -08:00
Mark Adler
3c13497a61
One more github actions version update.
2024-02-09 09:33:54 -08:00
Mark Adler
76156087c8
Update github actions versions.
2024-02-09 09:23:11 -08:00
Mark Adler
25740f4ad5
Include share.h on Windows for _SH_DENYNO.
2024-02-09 08:27:07 -08:00
Mark Adler
985a62d118
Address Microsoft deprecation warnings.
2024-02-08 18:45:49 -08:00
Justin Dhillon
504403f3e4
Fix broken links.
2024-02-07 15:35:51 -08:00