Mark Adler
7d54c69413
Fix uncompress() to work on lengths more than a maximum unsigned.
2014-04-26 08:08:25 -07:00
Mark Adler
f898bbed89
Fix compress() to work on lengths more than a maximum unsigned.
2014-04-26 08:08:12 -07:00
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.
2014-04-24 19:45:36 -04:00
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().
2013-08-24 10:36:32 -07:00
Mark Adler
89e335abb4
Fix contrib/minizip to permit unzipping with desktop API [Zouzou].
2013-08-03 18:13:23 -07:00
Mark Adler
303d92cfee
Spacing cleanup.
2013-05-23 20:11:54 -07:00
Mark Adler
ceeb615f46
Change version number to 1.2.8.1.
2013-05-02 23:12:54 -07:00
Mark Adler
5089329162
zlib 1.2.8
2013-04-28 17:23:49 -07:00
Mark Adler
5b5da45640
Fix mixed line endings in contrib/vstudio.
2013-04-28 17:22:27 -07:00
Mark Adler
2dad5389af
Correct spelling error in zlib.h.
2013-04-28 15:57:11 -07:00
Mark Adler
b4d802825a
Clean up contrib/vstudio [Roß].
2013-04-28 15:57:11 -07:00
Mark Adler
f5ec26344f
Update some copyright years.
2013-04-28 15:57:11 -07:00
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.
2013-04-28 15:57:11 -07:00
Mark Adler
5481269e1f
Update contrib/minizip/iowin32.c for Windows RT [Vollant].
2013-04-28 15:57:11 -07:00
Mark Adler
e8fee0ea7b
Change version number to 1.2.8.
2013-04-28 15:57:10 -07:00
Mark Adler
b7bc388454
zlib 1.2.7.3
2013-04-13 21:18:35 -07:00
Mark Adler
c714072020
Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.
2013-04-13 19:33:28 -07:00
Mark Adler
388a285cb8
Change version number to 1.2.7.3.
2013-04-13 18:58:46 -07:00
Mark Adler
139c67fc87
zlib 1.2.7.2
2013-04-13 18:15:42 -07:00
Mark Adler
70252daf89
Add casts in gzwrite.c for pointer differences.
2013-04-13 18:04:06 -07:00
Mark Adler
9b703f2000
Fix typo in win32/Makefile.msc.
2013-04-13 17:54:57 -07:00
Mark Adler
5d33c62c7d
Change check for a four-byte type back to hexadecimal.
2013-04-13 15:54:03 -07:00
Mark Adler
8a93f49c86
Change version number to 1.2.7.2.
2013-04-13 08:08:57 -07:00
Mark Adler
0b16609409
zlib 1.2.7.1
2013-03-24 22:47:59 -07:00
Mark Adler
f81b79c559
Line length cleanup.
2013-03-24 22:30:40 -07:00
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.
2013-03-24 22:15:04 -07:00
Mark Adler
81c3068b9a
In Makefile uninstall, don't rm if preceding cd fails.
2013-03-24 16:57:32 -07:00
Mark Adler
d3b613e320
Minor spacing cleanup in a comment in gzguts.h.
2013-03-24 16:56:05 -07:00
Enrico Weigelt, metux IT service
318a5e190e
Add man pages for minizip and miniunzip.
2013-03-24 16:28:41 -07:00
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.
2013-03-24 16:09:08 -07:00
Mark Adler
0aac8cf7c4
Clean up the addition of gzvprintf.
2013-03-23 23:47:15 -07:00
Mark Adler
f0546c8e34
Clean up the addition of inflateGetDictionary.
2013-03-23 23:32:58 -07:00
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.
2013-03-23 22:30:09 -07:00
Mark Adler
66fcefbb2f
Fix configure for Sun shell.
2013-03-23 13:50:10 -07:00
Mark Adler
b06dee4369
Add gzvprintf() as an undocumented function in zlib.
...
The function is only available if stdarg.h is available.
2013-03-22 18:32:37 -07:00
Mark Adler
dd5d0940e9
Add vc11 and vc12 build files to contrib/vstudio.
2013-03-22 17:38:37 -07:00
Mark Adler
a2d71e8e66
Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.
2013-02-24 00:16:24 -08:00
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.
2013-02-24 00:02:36 -08:00
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
2013-02-23 23:47:00 -08:00
Fredrik Orderud
79a7058be4
Simplify contrib/vstudio/vc10 with 'd' suffix.
2013-02-23 23:44:00 -08:00
takacsd
63ba7582b8
Fix types in contrib/minizip to match result of get_crc_table().
2013-02-23 23:32:30 -08:00
Jason Williams
00dfee0b2e
Fix casting error in contrib/testzlib/testzlib.c.
2013-02-23 23:28:45 -08:00
Will Glynn
27b7723222
Don't specify --version-script on Apple platforms in CMakeLists.txt.
...
Mac OS X's linker (derived from LLVM, not GNU binutils) does not support
--version-script. Don't specify it on this platform.
2013-02-23 23:11:15 -08:00
Will Glynn
bb97bc9d50
Quote --version-script argument in CMakeLists.txt.
...
Previously, spaces in ${CMAKE_CURRENT_SOURCE_PATH} would expand into
multiple linker arguments.
2013-02-23 23:03:42 -08:00
Greg Domjan
b116fb588d
Add contrib/vstudio/vc10 pre-build step for static only.
...
Also correct typo for 64-bit debug build.
2013-02-23 22:56:32 -08:00
Mark Adler
5afbdabacd
Add _tr_flush_bits to the external symbols prefixed by --zprefix.
2013-02-23 20:56:23 -08:00
Mark Adler
d211ecdf02
Use underscored I/O function names for WINAPI_FAMILY.
...
Suggested by E. Timothy Uy.
2013-02-23 20:27:13 -08:00
Mark Adler
931aa25aea
Update inflateBack() comments, since inflate() can be faster.
2013-02-23 20:12:20 -08:00
Mark Adler
51370f3656
Fix serious but very rare decompression bug in inftrees.c.
...
inftrees.c compared the number of used table entries to the maximum
allowed value using >= instead of >. This patch fixes those to use
>. The bug was discovered by Ignat Kolesnichenko of Yandex LC
where they have run petabytes of data through zlib. Triggering the
bug is apparently very rare, seeing as how it has been out there in
the wild for almost three years before being discovered. The bug
is instantiated only if the exact maximum number of decoding table
entries, ENOUGH_DISTS or ENOUGH_LENS is used by the block being
decoded, resulting in the false positive of overflowing the table.
2013-02-18 21:47:00 -08:00
Mark Adler
10056909c0
Check for invalid code length codes in contrib/puff.
...
Without this fix, it would be possible to construct inputs to puff
that would cause it to segfault.
2013-01-21 10:17:45 -08:00