Mark Adler
0b22337126
Avoid use of reallocf() in test/infcover.c.
9 years ago
Mark Adler
0db8fd3714
Fix inflateInit2() bug when windowBits is 16 or 32.
...
A windowBits value of 0, 16, or 32 gets the window bits from the
zlib header. However there is no zlib header for 16, or for 32
when the input is gzip. This commit sets the window bits for
inflate to 15 if a gzip stream is detected and windowBits was 16
or 32.
9 years ago
Mark Adler
b56d1c62ee
Add comment about not using windowBits of 8 for deflate().
9 years ago
Mark Adler
e7ebb399d7
Put license in zlib.3 man page.
...
Previously there was a confusing reference to a "distribution
directory".
9 years ago
Mark Adler
95698093f0
Improve speed of gzprintf() in transparent mode.
10 years ago
Mark Adler
8a979f6c79
Avoid left shift of a negative value in flush rank calculation.
...
The C standard permits an undefined result for a left shift of a
negative value.
10 years ago
Mark Adler
9859a94c10
Remedy Coverity warning. [Randers-Pehrson]
10 years ago
Mark Adler
5370d99a2a
Add inflateCodesUsed() function for internal use.
10 years ago
Mark Adler
283520baf7
Fix bug in test/example.c where error code not saved.
11 years ago
Mark Adler
9cbda797c1
Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.
11 years ago
Mark Adler
7d54c69413
Fix uncompress() to work on lengths more than a maximum unsigned.
11 years ago
Mark Adler
f898bbed89
Fix compress() to work on lengths more than a maximum unsigned.
11 years ago
Mark Adler
72c70060d8
Assure that gzoffset() is correct when appending.
...
An open() with O_APPEND followed by an lseek() to determine the
position will return zero for a non-empty file, even though the
next write will start at the end of the file. This commit works
around that by doing an lseek() to the end when appending.
11 years ago
Mark Adler
799c87c0d8
Improve contrib/blast to return unused bytes. Fix the test code
...
to report the count of unused bytes at the end correctly. Add the
ability to provide initial input to blast().
11 years ago
Mark Adler
89e335abb4
Fix contrib/minizip to permit unzipping with desktop API [Zouzou].
11 years ago
Mark Adler
303d92cfee
Spacing cleanup.
12 years ago
Mark Adler
ceeb615f46
Change version number to 1.2.8.1.
12 years ago
Mark Adler
5089329162
zlib 1.2.8
12 years ago
Mark Adler
5b5da45640
Fix mixed line endings in contrib/vstudio.
12 years ago
Mark Adler
2dad5389af
Correct spelling error in zlib.h.
12 years ago
Mark Adler
b4d802825a
Clean up contrib/vstudio [Roß].
12 years ago
Mark Adler
f5ec26344f
Update some copyright years.
12 years ago
Mark Adler
bddc968b14
Do not force Z_CONST for C++.
...
Forcing Z_CONST resulted in an issue when compiling Firefox. Now
if someone wants to compile zlib as C++ code (which it isn't), now
they will need to #define Z_CONST themselves.
12 years ago
Mark Adler
5481269e1f
Update contrib/minizip/iowin32.c for Windows RT [Vollant].
12 years ago
Mark Adler
e8fee0ea7b
Change version number to 1.2.8.
12 years ago
Mark Adler
b7bc388454
zlib 1.2.7.3
12 years ago
Mark Adler
c714072020
Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.
12 years ago
Mark Adler
388a285cb8
Change version number to 1.2.7.3.
12 years ago
Mark Adler
139c67fc87
zlib 1.2.7.2
12 years ago
Mark Adler
70252daf89
Add casts in gzwrite.c for pointer differences.
12 years ago
Mark Adler
9b703f2000
Fix typo in win32/Makefile.msc.
12 years ago
Mark Adler
5d33c62c7d
Change check for a four-byte type back to hexadecimal.
12 years ago
Mark Adler
8a93f49c86
Change version number to 1.2.7.2.
12 years ago
Mark Adler
0b16609409
zlib 1.2.7.1
12 years ago
Mark Adler
f81b79c559
Line length cleanup.
12 years ago
Mark Adler
c661c374e8
Do not return Z_BUF_ERROR if deflateParam() has nothing to write.
...
If the compressed data was already at a block boundary, then
deflateParam() would report Z_BUF_ERROR, because there was nothing
to write. With this patch, Z_OK is returned in that case.
12 years ago
Mark Adler
81c3068b9a
In Makefile uninstall, don't rm if preceding cd fails.
12 years ago
Mark Adler
d3b613e320
Minor spacing cleanup in a comment in gzguts.h.
12 years ago
Enrico Weigelt, metux IT service
318a5e190e
Add man pages for minizip and miniunzip.
12 years ago
Mark Adler
e9f0b78443
Add casts and consts to ease user conversion to C++.
...
You would still need to run zlib2ansi on all of the *.c files.
12 years ago
Mark Adler
0aac8cf7c4
Clean up the addition of gzvprintf.
12 years ago
Mark Adler
f0546c8e34
Clean up the addition of inflateGetDictionary.
12 years ago
Mark Adler
03ff48cc67
Remove runtime check in configure for four-byte integer type.
...
That didn't work when cross-compiling. Simply rely on limits.h.
If a compiler does not have limits.h, then zconf.h.in should be
modified to define Z_U4 as an unsiged four-byte integer type in
order for crc32() to be fast.
This also simplifies and makes more portable to check for a four-
byte type using limits.h.
12 years ago
Mark Adler
66fcefbb2f
Fix configure for Sun shell.
12 years ago
Mark Adler
b06dee4369
Add gzvprintf() as an undocumented function in zlib.
...
The function is only available if stdarg.h is available.
12 years ago
Mark Adler
dd5d0940e9
Add vc11 and vc12 build files to contrib/vstudio.
12 years ago
Mark Adler
a2d71e8e66
Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.
12 years ago
Like Ma
bc7e017112
Suport i686 and amd64 assembler builds in CMakeLists.txt.
...
* Use -DASM686=1 to build with i686 asm.
* Use -DAMD64=1 to build with amd64 asm.
12 years ago
E. Timothy Uy
64a77facc0
Add TOP support to win32/Makefile.msc.
...
Facilitate multi-platform compilation, e.g.:
nmake -f pathto\zlib\win32\Makefile.msc TOP=pathto\zlib
12 years ago
Fredrik Orderud
79a7058be4
Simplify contrib/vstudio/vc10 with 'd' suffix.
12 years ago