WaLyong Cho [Thu, 19 Nov 2015 07:31:44 +0000 (16:31 +0900)]
minizip: do not declare NOUNCRYPT
NOUNCRYPT is added to reduce code size. And this file was not maintaied
very long time also on upstream.
Now, we need this to unzip password protected file.
Further, many of major linux distributions also disable this.
Change-Id: I530d56f02a92361d4c02b3d9ee6338dfd9e841dd
Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
DongHun Kwak [Thu, 24 Dec 2015 01:58:02 +0000 (10:58 +0900)]
Add license file(Zlib)
Change-Id: I11924dc5903d18261063e3672dabf6e5a12c41c9
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
DongHun Kwak [Tue, 15 Dec 2015 01:34:49 +0000 (10:34 +0900)]
Change symbolic link for bootstrap
Change-Id: Iea31cf5732d7287e5f10f1e9ca651eb9e6e4f069
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Kévin THIERRY [Fri, 31 Oct 2014 12:23:48 +0000 (13:23 +0100)]
Bump to version 1.2.8
Use upstream git repo instead of pristin-tar.
Also clean spec file.
Bug-Tizen: TC-1882
Change-Id: I92c6cf2df8ab9cd5d2f8b8caee4de31fc6c9ce07
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Alexandru Cornea [Sat, 29 Jun 2013 04:13:59 +0000 (07:13 +0300)]
resetting manifest requested domain to floor
Anas Nashif [Fri, 22 Mar 2013 19:17:03 +0000 (12:17 -0700)]
fixed package groups
Anas Nashif [Fri, 22 Mar 2013 17:55:27 +0000 (10:55 -0700)]
Fixed package groups
Anas Nashif [Sat, 29 Dec 2012 05:33:51 +0000 (21:33 -0800)]
fix minizip dependencies
Anas Nashif [Sat, 29 Dec 2012 05:33:38 +0000 (21:33 -0800)]
fix minizip dependencies
Anas Nashif [Sat, 29 Dec 2012 02:12:44 +0000 (18:12 -0800)]
add minizip package
Anas Nashif [Thu, 11 Oct 2012 17:49:40 +0000 (10:49 -0700)]
added packaging files
Mark Adler [Sun, 28 Apr 2013 23:03:34 +0000 (16:03 -0700)]
zlib 1.2.8
Mark Adler [Mon, 29 Apr 2013 00:21:50 +0000 (17:21 -0700)]
Fix mixed line endings in contrib/vstudio.
Mark Adler [Sun, 28 Apr 2013 22:36:25 +0000 (15:36 -0700)]
Correct spelling error in zlib.h.
Mark Adler [Fri, 19 Apr 2013 07:47:59 +0000 (21:47 -1000)]
Clean up contrib/vstudio [Roß].
Mark Adler [Fri, 19 Apr 2013 07:38:15 +0000 (21:38 -1000)]
Update some copyright years.
Mark Adler [Sun, 14 Apr 2013 17:31:31 +0000 (10:31 -0700)]
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.
Mark Adler [Sun, 14 Apr 2013 17:05:43 +0000 (10:05 -0700)]
Update contrib/minizip/iowin32.c for Windows RT [Vollant].
Mark Adler [Sun, 14 Apr 2013 04:38:26 +0000 (21:38 -0700)]
Change version number to 1.2.8.
Mark Adler [Sun, 14 Apr 2013 04:18:35 +0000 (21:18 -0700)]
zlib 1.2.7.3
Mark Adler [Sun, 14 Apr 2013 02:11:47 +0000 (19:11 -0700)]
Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc.
Mark Adler [Sun, 14 Apr 2013 01:58:46 +0000 (18:58 -0700)]
Change version number to 1.2.7.3.
Mark Adler [Sun, 14 Apr 2013 01:15:42 +0000 (18:15 -0700)]
zlib 1.2.7.2
Mark Adler [Sun, 14 Apr 2013 01:04:06 +0000 (18:04 -0700)]
Add casts in gzwrite.c for pointer differences.
Mark Adler [Sun, 14 Apr 2013 00:54:57 +0000 (17:54 -0700)]
Fix typo in win32/Makefile.msc.
Mark Adler [Sat, 13 Apr 2013 22:54:03 +0000 (15:54 -0700)]
Change check for a four-byte type back to hexadecimal.
Mark Adler [Sat, 13 Apr 2013 15:08:57 +0000 (08:08 -0700)]
Change version number to 1.2.7.2.
Mark Adler [Mon, 25 Mar 2013 05:46:40 +0000 (22:46 -0700)]
zlib 1.2.7.1
Mark Adler [Mon, 25 Mar 2013 05:30:40 +0000 (22:30 -0700)]
Line length cleanup.
Mark Adler [Mon, 25 Mar 2013 05:12:31 +0000 (22:12 -0700)]
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.
Mark Adler [Sun, 24 Mar 2013 23:57:32 +0000 (16:57 -0700)]
In Makefile uninstall, don't rm if preceding cd fails.
Mark Adler [Sun, 24 Mar 2013 23:56:05 +0000 (16:56 -0700)]
Minor spacing cleanup in a comment in gzguts.h.
Enrico Weigelt, metux IT service [Tue, 6 Jul 2010 18:06:08 +0000 (20:06 +0200)]
Add man pages for minizip and miniunzip.
Mark Adler [Sun, 24 Mar 2013 22:18:02 +0000 (15:18 -0700)]
Add casts and consts to ease user conversion to C++.
You would still need to run zlib2ansi on all of the *.c files.
Mark Adler [Sun, 24 Mar 2013 06:47:15 +0000 (23:47 -0700)]
Clean up the addition of gzvprintf.
Mark Adler [Sun, 24 Mar 2013 05:57:27 +0000 (22:57 -0700)]
Clean up the addition of inflateGetDictionary.
Mark Adler [Sun, 24 Mar 2013 05:27:43 +0000 (22:27 -0700)]
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.
Mark Adler [Sat, 23 Mar 2013 20:50:10 +0000 (13:50 -0700)]
Fix configure for Sun shell.
Mark Adler [Sat, 23 Mar 2013 01:32:37 +0000 (18:32 -0700)]
Add gzvprintf() as an undocumented function in zlib.
The function is only available if stdarg.h is available.
Mark Adler [Sat, 23 Mar 2013 00:38:37 +0000 (17:38 -0700)]
Add vc11 and vc12 build files to contrib/vstudio.
Mark Adler [Sun, 24 Feb 2013 08:16:24 +0000 (00:16 -0800)]
Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h.
Like Ma [Mon, 11 Feb 2013 18:41:27 +0000 (02:41 +0800)]
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.
E. Timothy Uy [Thu, 20 Dec 2012 20:36:55 +0000 (12:36 -0800)]
Add TOP support to win32/Makefile.msc.
Facilitate multi-platform compilation, e.g.:
nmake -f pathto\zlib\win32\Makefile.msc TOP=pathto\zlib
Fredrik Orderud [Tue, 11 Dec 2012 20:44:56 +0000 (21:44 +0100)]
Simplify contrib/vstudio/vc10 with 'd' suffix.
takacsd [Fri, 30 Nov 2012 18:43:50 +0000 (19:43 +0100)]
Fix types in contrib/minizip to match result of get_crc_table().
Jason Williams [Tue, 27 Nov 2012 04:27:06 +0000 (07:27 +0300)]
Fix casting error in contrib/testzlib/testzlib.c.
Will Glynn [Tue, 13 Nov 2012 18:41:30 +0000 (12:41 -0600)]
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.
Will Glynn [Tue, 13 Nov 2012 18:35:50 +0000 (12:35 -0600)]
Quote --version-script argument in CMakeLists.txt.
Previously, spaces in ${CMAKE_CURRENT_SOURCE_PATH} would expand into
multiple linker arguments.
Greg Domjan [Fri, 14 Sep 2012 20:48:12 +0000 (16:48 -0400)]
Add contrib/vstudio/vc10 pre-build step for static only.
Also correct typo for 64-bit debug build.
Mark Adler [Sun, 24 Feb 2013 04:56:23 +0000 (20:56 -0800)]
Add _tr_flush_bits to the external symbols prefixed by --zprefix.
Mark Adler [Sun, 24 Feb 2013 04:27:13 +0000 (20:27 -0800)]
Use underscored I/O function names for WINAPI_FAMILY.
Suggested by E. Timothy Uy.
Mark Adler [Sun, 24 Feb 2013 04:12:20 +0000 (20:12 -0800)]
Update inflateBack() comments, since inflate() can be faster.
Mark Adler [Tue, 19 Feb 2013 05:06:35 +0000 (21:06 -0800)]
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.
Mark Adler [Mon, 21 Jan 2013 18:15:51 +0000 (10:15 -0800)]
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.
Mark Adler [Thu, 25 Oct 2012 05:50:23 +0000 (22:50 -0700)]
Fix comparisons of differently signed integers in contrib/blast.
Mark Adler [Thu, 25 Oct 2012 05:47:37 +0000 (22:47 -0700)]
Add note to contrib/blast to use binary mode in stdio.
Mark Adler [Thu, 11 Oct 2012 23:10:59 +0000 (16:10 -0700)]
Check for input buffer malloc failure in examples/gzappend.c.
Mark Adler [Tue, 2 Oct 2012 05:42:35 +0000 (22:42 -0700)]
Fix bug in gzclose() when gzwrite() runs out of memory.
If the deflateInit2() called for the first gzwrite() failed with a
Z_MEM_ERROR, then a subsequent gzclose() would try to free an
already freed pointer. This fixes that.
Mark Adler [Sun, 30 Sep 2012 05:23:47 +0000 (22:23 -0700)]
Fix bug where gzopen(), gzclose() would write an empty file.
A gzopen() to write (mode "w") followed immediately by a gzclose()
would output an empty zero-length file. What it should do is write
an empty gzip file, with the gzip header, empty deflate content,
and gzip trailer totalling 20 bytes. This fixes it to do that.
Mark Adler [Sun, 30 Sep 2012 04:48:18 +0000 (21:48 -0700)]
Fix memory allocation error in examples/zran.c [Nor].
Mark Adler [Fri, 24 Aug 2012 22:02:28 +0000 (15:02 -0700)]
Fix unintialized value bug in gzputc() introduced by const patches.
Avoid the use of an uninitialized value when the write buffers have
not been initialized. A recent change to avoid the use of strm->
next_in in order to resolve some const conflicts added the use of
state->in in its place. This patch avoids the use of state->in
when it is not initialized. Nothing bad would actually happen,
since two variables set to the same unintialized value are
subtracted. However valgrind was rightly complaining. So this
fixes that.
Mark Adler [Sun, 19 Aug 2012 00:59:50 +0000 (17:59 -0700)]
Avoid shift equal to bits in type (caused endless loop).
Also clean up comparisons between different types, and some odd
indentation problems that showed up somehow.
A new endless loop was introduced by the clang compiler, which
apparently does odd things when the right operand of << is equal to
or greater than the number of bits in the type. The C standard in
fact states that the behavior of << is undefined in that case. The
loop was rewritten to use single-bit shifts.
Mark Adler [Tue, 14 Aug 2012 07:31:23 +0000 (00:31 -0700)]
Clean up examples/gzlog.[ch] comparisons of different types.
Mark Adler [Tue, 14 Aug 2012 07:30:44 +0000 (00:30 -0700)]
Clean up examples/gzjoin.c for z_const usage.
Mark Adler [Tue, 14 Aug 2012 07:29:58 +0000 (00:29 -0700)]
Fix example/gzappend.c for proper z_const usage.
Mark Adler [Tue, 14 Aug 2012 04:49:10 +0000 (21:49 -0700)]
Update examples/gun.c for proper z_const usage.
Mark Adler [Mon, 13 Aug 2012 01:08:52 +0000 (18:08 -0700)]
Clean up the usage of z_const and respect const usage within zlib.
This patch allows zlib to compile cleanly with the -Wcast-qual gcc
warning enabled, but only if ZLIB_CONST is defined, which adds
const to next_in and msg in z_stream and in the in_func prototype.
A --const option is added to ./configure which adds -DZLIB_CONST
to the compile flags, and adds -Wcast-qual to the compile flags
when ZLIBGCCWARN is set in the environment.
Mark Adler [Mon, 9 Jul 2012 00:01:13 +0000 (17:01 -0700)]
Fix argument checks in gzlog_compress() and gzlog_write().
Mark Adler [Sun, 8 Jul 2012 23:48:36 +0000 (16:48 -0700)]
Remove unused variable in infback9.c.
Birunthan Mohanathas [Wed, 6 Jun 2012 17:30:39 +0000 (20:30 +0300)]
Fix comment typos in unzip.h and unzip.c.
Thomas Roß [Wed, 6 Jun 2012 23:25:36 +0000 (01:25 +0200)]
Update copyright year in win32/zlib1.rc.
Thomas Roß [Wed, 6 Jun 2012 23:23:32 +0000 (01:23 +0200)]
Fix CMake compilation of static lib for MSVC2010 x64.
Mark Adler [Sun, 10 Jun 2012 05:42:24 +0000 (22:42 -0700)]
Fix configure check for veracity of compiler error return codes.
There were two problems before that this fixes. One was that the
check for the compiler error return code preceded the determination
of the compiler and its options. The other was that the checks
for compiler and library characteristics could be fooled if the
error options were set to reject K&R-style C. configure now aborts
if the compiler produces a hard error on K&R-style C.
In addition, aborts of configure are now consistent, and remove
any temporary files.
Mark Adler [Sun, 10 Jun 2012 02:47:55 +0000 (19:47 -0700)]
Delete "--version" file if created by "ar --version" [Richard G.].
Mark Adler [Sun, 10 Jun 2012 05:58:06 +0000 (22:58 -0700)]
Cleaner check for whether libtool is Apple or not on Darwin.
Mark Adler [Sun, 10 Jun 2012 02:15:36 +0000 (19:15 -0700)]
On Darwin, only use /usr/bin/libtool if libtool is not Apple.
The original change was to always use /usr/bin/libtool on Darwin,
in order to avoid using a GNU libtool installed by the user in the
path ahead of Apple's libtool. However someone might install a
more recent Apple libtool ahead of /usr/bin/libtool. This commit
checks to see if libtool is Apple, and uses /usr/bin/libtool if it
isn't.
Mark Adler [Sun, 3 Jun 2012 23:28:06 +0000 (16:28 -0700)]
Use _snprintf for snprintf under Microsoft C in test/minigzip.c.
Mark Adler [Sun, 3 Jun 2012 19:45:55 +0000 (12:45 -0700)]
Use _snprintf for snprinf in Microsoft C.
More than a decade later, Microsoft C does not support the C99
standard. It's good that _snprintf has a different name, since it
does not guarantee that the result is null terminated, as does
snprintf. However where _snprintf is used under Microsoft C, the
destination string is assured to be long enough, so this will not
be a problem. This occurs in two places, both in gzlib.c. Where
sprintf functionality is needed by gzprintf, vsnprintf is used in
the case of Microsoft C.
Mark Adler [Sat, 2 Jun 2012 17:16:43 +0000 (10:16 -0700)]
Correct comment in deflate.h.
Mark Adler [Sat, 26 May 2012 17:37:17 +0000 (10:37 -0700)]
Add inflateGetDictionary() function.
Mark Adler [Wed, 23 May 2012 05:31:19 +0000 (22:31 -0700)]
Fix bug in 'F' mode for gzopen().
Mark Adler [Sun, 20 May 2012 18:32:13 +0000 (11:32 -0700)]
Eliminate use of mktemp in Makefile (not always available).
Mark Adler [Fri, 18 May 2012 04:13:23 +0000 (21:13 -0700)]
Fix gzgetc undefine when Z_PREFIX set [Turk].
Mark Adler [Fri, 4 May 2012 04:23:45 +0000 (21:23 -0700)]
Avoid including stddef.h on Windows for Z_SOLO compile [Niessink].
Mark Adler [Thu, 3 May 2012 06:18:38 +0000 (23:18 -0700)]
Replace use of unsafe string functions with snprintf if available.
This avoids warnings in OpenBSD that apparently can't be turned
off whenever you link strcpy, strcat, or sprintf. When snprintf
isn't available, the use of the "unsafe" string functions has
always in fact been safe, since the lengths are all checked before
those functions are called.
We do not use strlcpy or strlcat, since they are not (yet) found on
all systems. snprintf on the other hand is part of the C standard
library and is very common.
Mark Adler [Thu, 3 May 2012 05:38:26 +0000 (22:38 -0700)]
Change version number to 1.2.7.1.
Mark Adler [Thu, 3 May 2012 03:32:41 +0000 (20:32 -0700)]
zlib 1.2.7
Mark Adler [Thu, 3 May 2012 03:17:59 +0000 (20:17 -0700)]
Add instructions to win32/Makefile.gcc for shared install [Torri].
Mark Adler [Wed, 2 May 2012 04:17:08 +0000 (21:17 -0700)]
Force the native libtool in Mac OS X to avoid GNU libtool [Beebe].
Daniel Snider [Tue, 3 Apr 2012 14:26:07 +0000 (09:26 -0500)]
Fix the path to zlib.map in CMakeLists.txt.
Mark Adler [Mon, 30 Apr 2012 04:15:12 +0000 (21:15 -0700)]
Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler].
Mark Adler [Mon, 30 Apr 2012 01:23:46 +0000 (18:23 -0700)]
Fix location of executable for finding a four-byte integer.
Mark Adler [Sun, 29 Apr 2012 23:18:12 +0000 (16:18 -0700)]
Fix type mismatch between get_crc_table() and crc_table.
crc_table is made using a four-byte integer (when that can be
determined). However get_crc_table() returned a pointer to an
unsigned long, which could be eight bytes. This fixes that by
creating a new z_crc_t type for the crc_table.
This type is also used for the BYFOUR crc calculations that depend
on a four-byte type. The four-byte type can now be determined by
./configure, which also solves a problem where ./configure --solo
would never use BYFOUR. No the Z_U4 #define indicates that four-
byte integer was found either by ./configure or by zconf.h.
Mark Adler [Mon, 23 Apr 2012 05:58:06 +0000 (22:58 -0700)]
Avoid race condition for parallel make (-j) running example.
Mark Adler [Mon, 23 Apr 2012 01:41:11 +0000 (18:41 -0700)]
Remove -R. from Solaris shared build (possible security issue).
Mark Adler [Mon, 23 Apr 2012 01:27:41 +0000 (18:27 -0700)]
Update ./configure for Solaris, support --64 [Mooney].
Mark Adler [Sun, 1 Apr 2012 15:46:37 +0000 (08:46 -0700)]
Add more comments to configure.
jK [Mon, 26 Mar 2012 18:18:13 +0000 (20:18 +0200)]
Fix contrib/minizip compilation in the MinGW environment.
Birunthan Mohanathas [Thu, 22 Mar 2012 16:22:01 +0000 (18:22 +0200)]
Remove gzflags from zlibvc.def in vc9 and vc10.
Mark Adler [Sun, 18 Mar 2012 21:52:31 +0000 (14:52 -0700)]
Attempt to convert the wchar_t path in gzopen_w() for errors.
The conversion to multi-byte will be locale-specific, but it's
better than nothing and is only to provide more information in the
error message returned by gz_error(). The conversion has no
effect on what's opened.