Mark Adler
8cca42c33f
Remove bypass of MinGW gcc case in configure.
2 years ago
Mark Adler
67eb09a20b
Add continuous integration workflows. [nmoinvaz]
...
These workflows will be run to verify that project generation,
source file compilation, and test cases run successfully.
2 years ago
Mark Adler
352cb28d12
Add a separate LICENSE file to the distribution.
2 years ago
Mark Adler
4572dfbe99
Remove some harmless semicolons in minizip.
2 years ago
Mark Adler
888b3da8de
Provide missing function prototypes in CRC-32 code. [fredgan]
2 years ago
Mark Adler
a9e14e8541
Avoid undefined negation behavior if windowBits is INT_MIN.
2 years ago
Mark Adler
138c93cffb
Security and warning fixes for minizip. [gvollant]
...
Remove unused code and unnecessary test for free().
2 years ago
Mark Adler
9b291c9f01
Fix incorrect cast in minizip's ioapi.c.
2 years ago
Mark Adler
2d283adfee
Fix c89 compatibility in minizip's ioapi.c. [gvollant]
2 years ago
Mark Adler
9331fecc10
Remove redundant check in gz_look().
2 years ago
Mark Adler
d0704a8201
Remove deleted assembler code references.
...
The code was removed, but the builds that used the code were not
updated. This fixes that. Thanks to Adenilson and toxieainc for
the patches.
2 years ago
Mark Adler
095da07753
Remove -pedantic from configure -w compile options.
2 years ago
Mark Adler
cc8d08c21e
Update copyright year in win32/zlib1.rc.
2 years ago
Mark Adler
d39a2558bc
Add missing symbols to os400/bndsrc.
2 years ago
Mark Adler
84c6716a48
Minor formatting improvements.
...
No code changes.
2 years ago
Mark Adler
3e4aa45834
Add new crc32 functions to z_ prefix defines.
2 years ago
Mark Adler
456775aec8
Add WIN32_LEAN_AND_MEAN for windows.h include.
2 years ago
Mark Adler
4078713e3b
Tighten deflateBound bounds.
...
This improves the non-default expansion from 14% down to 4% in
most cases, and 13% in the remainder.
2 years ago
Mark Adler
7fabcb5357
Fix bug in block type selection when Z_FIXED used.
...
A fixed block could be chosen when a stored block was smaller. Now
the smaller of the two is always chosen.
2 years ago
Mark Adler
2d6d59e472
Avoid conversion warning in minigzip.c.
2 years ago
Mark Adler
59b948acee
Fix typo in contrib readme.
2 years ago
Mark Adler
5752b171fd
Fix some typos.
...
No code changes.
2 years ago
Mark Adler
1eb7682f84
Fix extra field processing bug that dereferences NULL state->head.
...
The recent commit to fix a gzip header extra field processing bug
introduced the new bug fixed here.
2 years ago
Mark Adler
22aec0cb0b
Add -g when debugging with -fsanitize=address to include symbols.
2 years ago
Mark Adler
eff308af42
Fix a bug when getting a gzip header extra field with inflate().
...
If the extra field was larger than the space the user provided with
inflateGetHeader(), and if multiple calls of inflate() delivered
the extra header data, then there could be a buffer overflow of the
provided space. This commit assures that provided space is not
exceeded.
2 years ago
Mark Adler
b8bd09801f
Have infback() deliver all of the available output up to any error.
2 years ago
Mark Adler
2333419cd7
Fix inflateBack to detect invalid input with distances too far.
2 years ago
Mark Adler
7ecf7c7458
Fix odd error in Visual C compiler preventing automatic promotion.
2 years ago
Mark Adler
6c532a8e8a
Fix missing ZEXPORT for crc32_combine_op().
2 years ago
Mark Adler
441a2ac602
Have build test report library version if it doesn't match zlib.h.
3 years ago
Mark Adler
ec3df00224
Correct incorrect inputs provided to the CRC functions.
...
The previous releases of zlib were not sensitive to incorrect CRC
inputs with bits set above the low 32. This commit restores that
behavior, so that applications with such bugs will continue to
operate as before.
3 years ago
Mark Adler
ce12773790
Fix compile with Windows 10 SDK. (gvollant)
3 years ago
Mark Adler
05796d3d8d
Fix configure issue that discarded provided CC definition.
3 years ago
Mark Adler
3df842426b
Silence some warnings from Visual Studio C.
3 years ago
Mark Adler
a4c17581d8
Change version number on develop branch to 1.2.12.1.
3 years ago
Mark Adler
21767c654d
zlib 1.2.12
3 years ago
Mark Adler
296967c7b7
Fix crc32.c to compile local functions only if used.
3 years ago
Mark Adler
e9a52aa129
Check for cc masquerading as gcc or clang in configure.
3 years ago
Mark Adler
1a1e8da703
Remove destructive aspects of make distclean.
3 years ago
Mark Adler
6847291ea0
Separate out address sanitizing from warnings in configure.
3 years ago
Mark Adler
735eaa1ebd
Eliminate use of ULL constants.
...
0xffffffffffffffffULL was causing warnings for C99 usage. The
suffix for the constant is not necessary anyway, so this commit
removes them.
3 years ago
Mark Adler
76f70abbc7
Add fallthrough comments for gcc.
...
Note intentional switch case fall throughs to avoid gcc warnings.
3 years ago
Mark Adler
2014a993ad
Clean up minizip to reduce warnings for testing.
...
Also fix Makefile test target and permit added compile options.
3 years ago
Mark Adler
58ca4e57ce
Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner)
...
The issue is that unztell64() does not return the correct value if
the position in the current file (in the ZIP archive) is beyond 4
GB. The cause is that unzReadCurrentFile() does not account for
pfile_in_zip_read_info->stream.total_out at line 1854 of unzip.c
wrapping around (it is a 32-bit variable). So, on line 1860
uTotalOutAfter can be *less* than uTotalOutBefore, propagating the
wraparound to uOutThis, which in turn is added to
pfile_in_zip_read_info->total_out_64. That has the effect of
subtracting 4 GB.
3 years ago
Mark Adler
b135d46eaf
minizip warning fix if MAXU32 already defined. (gvollant)
3 years ago
Mark Adler
8678871f18
Replace black/white with allow/block. (theresa-m)
3 years ago
Mark Adler
c3f3043f7a
Fix indentation in minizip's zip.c.
3 years ago
Mark Adler
0530dbcef9
Improve portability of contrib/minizip.
4 years ago
Mark Adler
506424c640
Correct typo in blast.c.
4 years ago
Mark Adler
53ce271311
Change macro name in inflate.c to avoid collision in VxWorks.
4 years ago