Mark Adler
164b8e3c9f
Avoid use of uintmax_t in enough.c.
6 months ago
Meiye-lj
3f44e55d5d
Add required gzguts.h dependencies in Makefile.in.
6 months ago
Mark Adler
ceadaf28df
Fix test/infcover.c function prototype when ZLIB_CONST defined.
7 months ago
Mark Adler
3adaa095a7
One more correction for deflateUsed() bits in stored case.
7 months ago
Mark Adler
884e0c0809
Correct used bits from deflateUsed() for deflate_stored() case.
7 months ago
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.
7 months ago
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.
7 months ago
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.
8 months ago
Mark Adler
0f3b7b9595
Correct typo in zlib.h comment.
9 months ago
Matthieu Longo
1b70083bed
Replace autotools macro AC_HELP_STRING with AS_HELP_STRING.
...
In minizip's configure.ac. AC_HELP_STRING is obsolete.
9 months ago
Lwisce Zeng
2ba25b2dda
Use z_const for setting msg to literal strings.
10 months ago
Mark Adler
c5e87dcdef
Make z_off_t 64 bits by default.
10 months ago
qyt
4f8a17e8cb
Add -fPIC to compiler options for static library build on Android.
10 months ago
Mark Adler
0f51fb4933
Avert minizip warnings for MSVC.
10 months ago
Mark Adler
d201f04c72
Avoid conversion warning on 32-bit architectures in minizip.
11 months ago
Mark Adler
90c677bc25
Use long long offsets for MinGW.
11 months ago
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.
11 months ago
Mark Adler
9f418e1028
Update old comment in inflate.h.
11 months ago
Mark Adler
99b229487c
Avoid signed shift in minizip zip.c.
11 months ago
Mark Adler
f60ce91139
Improve random number seeding in skipset.h.
11 months ago
Mark Adler
4a5e3e7d25
Add zipAlreadyThere() to minizip zip.c to help avoid duplicates.
11 months ago
Mark Adler
54e205f878
Permit changing minizip Makefile optimization with CFLAGS.
11 months ago
Mark Adler
a8c321be84
Make deflateBound() more conservative and handle Z_STREAM_END.
11 months ago
Mark Adler
72d6aa2672
Reduce Windows header inclusion to speed up compilation.
11 months ago
Mark Adler
6544c3ecb7
Use lseek under WinCE.
12 months ago
Mark Adler
35175f2c0e
Remove conversion warning from msdos/Makefile.dj2.
12 months ago
Mark Adler
5c42a230b7
Correct argument types for 64-bit combine functions.
12 months ago
Mark Adler
04134633fa
Use 64-bit offsets in DJGPP.
12 months ago
Mark Adler
c983609168
Include unistd.h on DJGPP.
12 months ago
pmqs
0e95839324
Add github workflow to build with all available C standards.
12 months ago
pmqs
d9243a0f06
Add warnings and error on warning to configure and cmake tests.
12 months ago
Mark Adler
fd5fe8b17e
Further address Microsoft deprecation warnings.
12 months ago
Mark Adler
ceac32f156
Keep lines short in gzread.c.
12 months ago
Mark Adler
1bff6f0fd5
Avoid signedness change warning in test/minigzip.c.
12 months ago
Mark Adler
7a7202de35
Correct a variable type in deflate.c.
12 months ago
Mark Adler
3c13497a61
One more github actions version update.
12 months ago
Mark Adler
76156087c8
Update github actions versions.
12 months ago
Mark Adler
25740f4ad5
Include share.h on Windows for _SH_DENYNO.
12 months ago
Mark Adler
985a62d118
Address Microsoft deprecation warnings.
1 year ago
Justin Dhillon
504403f3e4
Fix broken links.
1 year ago
Mark Adler
81e7c38608
Correct printf formats in test/infcover.c to %zu.
1 year ago
Mark Adler
96d3e9e3dd
Expand on the deflate strategy parameter in zlib.h.
1 year ago
Mark Adler
e342bb3dae
Assume no snprintf() or vsnprintf() if C89/90 in gzguts.h.
...
Those functions were introduced in C99. However it is assumed that
they are there if under Windows, since Visual C claims C89/90, but
does have those functions, or variants.
1 year ago
Mark Adler
915a3d5b7b
Avoid use of snprintf() in test/minigzip.c.
...
It was being used only as a safe version of strcpy(). Instead, use
a safe alternative to strcpy().
1 year ago
Mark Adler
1382e66114
Use _POSIX_C_SOURCE in gzguts.h, instead of _POSIX_SOURCE.
1 year ago
Paul Marquess
4b98fd39c8
Enable fileno() for POSIX system in minigzip.c.
1 year ago
Mark Adler
abd3d1a289
Update zran version.
1 year ago
Mark Adler
037bca67fd
Allocate the dictionaries in examples/zran.c.
...
This reduces the memory needed for dictionaries, and avoids the
need to reallocate the index at the end to return unused memory.
1 year ago
Mark Adler
6378d33478
Provide a reusable inflate engine in the index in example/zran.c.
...
Avoids the overhead of creating a new inflate engine for each
random access extraction.
1 year ago
Mark Adler
bb054d95d0
Stop decoding in zran.c once request is satisfied.
1 year ago