aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Enable fileno() for POSIX system in minigzip.c.Paul Marquess2024-02-051-0/+4
|
* Update zran version.Mark Adler2024-02-042-4/+8
|
* Allocate the dictionaries in examples/zran.c.Mark Adler2024-02-042-22/+27
| | | | | This reduces the memory needed for dictionaries, and avoids the need to reallocate the index at the end to return unused memory.
* Provide a reusable inflate engine in the index in example/zran.c.Mark Adler2024-02-042-76/+78
| | | | | Avoids the overhead of creating a new inflate engine for each random access extraction.
* Stop decoding in zran.c once request is satisfied.Mark Adler2024-02-041-2/+6
|
* Set returned index to NULL on an index build error in zran.c.Mark Adler2024-02-042-1/+5
| | | | | | An attempt to use the returned pointer in deflate_index_extract() will now return cleanly with an error. The returned pointer can now also be used with deflate_index_free() even on error.
* Fix cmake build directory interference issue.Mark Adler2024-01-281-2/+6
|
* Fix version numbers in vstudio definition files.Mark Adler2024-01-286-6/+6
| | | | They can only have a major and a minor version.
* Update copyright years in LICENSE file.Mark Adler2024-01-241-1/+1
|
* Enable build of shared library on AIX.Aleksei Shpakovskii2024-01-231-0/+1
|
* Note termination of returned strings in contrib/minizip/unzip.h.Mark Adler2024-01-231-0/+4
|
* Ignore unknown options in configure.Mark Adler2024-01-231-4/+5
|
* Avoid implicit conversion warnings in deflate.c and trees.c.Levi Broderick2024-01-232-5/+5
|
* Add option to CMakeLists.txt to disable renaming of zconf.h.Tomas Berger2024-01-231-1/+2
|
* Avoid unterminated file name in contrib/minizip/miniunz.c.Mark Adler2024-01-231-2/+2
|
* Permit compiling contrib/minizip/unzip.c with decryption.Mark Adler2024-01-232-5/+0
|
* Improve portability to RISC OS.Cameron Cawley2024-01-235-9/+11
|
* Change version number on develop branch to 1.3.1.1.Mark Adler2024-01-2226-52/+55
|
* zlib 1.3.1v1.3.1masterMark Adler2024-01-2241-84/+91
|
* Move the load flags before the object files in Makefile tests.Mark Adler2024-01-221-5/+5
|
* Add target include directories to CMakeLists.txt.tr1cks2024-01-221-0/+2
| | | | This enables the addition of zlib to other projects.
* Use Makefile compiler for minizip-test target.Mark Adler2024-01-212-2/+2
|
* Remove -w compile option in configure test.Mark Adler2024-01-201-1/+1
| | | | Not all C compilers have a -w option.
* Use updated zconf.h when building out of directory with configure.Dan Kegel2024-01-191-1/+1
|
* Remove carriage returns from zlib.map.Mark Adler2024-01-191-100/+100
|
* Fix a bug in ZLIB_DEBUG compiles in check_match().Mark Adler2024-01-191-6/+14
| | | | | This avoids trying to compare a match starting one byte before the current window. Thanks to @zmodem (Hans) for discovering this.
* Revert "Add a CMake option to link the C runtime statically."Mark Adler2024-01-191-21/+4
| | | | This reverts commit 44dc43ab047d65febed972a17b0e3bf7e994e8f2.
* Remove unused Z_ARG macro.Mark Adler2024-01-173-24/+0
|
* Fix cmake build on AIX.gastush2024-01-171-1/+1
| | | | The --version-script linker option is not supported by the linker on AIX systems
* Remove mentions of an official zlib DLL distribution.Mark Adler2024-01-172-20/+3
| | | | | There used to be one, but no more. It is up to the user or vendor to compile zlib.
* Correct typos in source code.Dimitri Papadopoulos2024-01-173-6/+6
|
* Make the existence of gz_intmax() unconditional.Milan Bulat2024-01-172-10/+6
| | | | gz_intmax() is noted in zlib.map. This assures it's always there.
* Add cmake option to control the build of the example executables.Peter Taylor2024-01-171-17/+19
|
* Neutralize zip file traversal attacks in miniunz.Matt Wilson2024-01-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Archive formats such as .zip files are generally susceptible to so-called "traversal attacks". This allows an attacker to craft an archive that writes to unexpected locations of the file system (e.g., /etc/shadow) if an unspecting root user were to unpack a malicious archive. This patch neutralizes absolute paths such as /tmp/moo and deeply relative paths such as dummy/../../../../../../../../../../tmp/moo The Debian project requested CVE-2014-9485 be allocated for the first identified weakness. The fix was incomplete, resulting in a revised patch applied here. Since there wasn't an updated version released by Debian with the incomplete fix, I suggest we use this CVE to identify both issues. Link: https://security.snyk.io/research/zip-slip-vulnerability Link: https://bugs.debian.org/774321 Link: https://bugs.debian.org/776831 Link: https://nvd.nist.gov/vuln/detail/CVE-2014-9485 Reported-by: Jakub Wilk <jwilk@debian.org> Fixed-by: Michael Gilbert <mgilbert@debian.org>
* Add a CMake option to link the C runtime statically.tbeu2024-01-171-4/+22
|
* Fix random typos over several source and text files.THE-Spellchecker2024-01-178-11/+11
|
* Fix "the the" in examples/gzlog.c.William Leara2024-01-171-2/+2
|
* Correct case of MSDOS in contrib/minizip/miniunz.c.William Leara2024-01-171-1/+1
|
* Refer to correct function in contrib/minizip/unzip.c comment.William Leara2024-01-171-1/+1
|
* Note that the len2 argument of crc_combine*() must be non-negative.Mark Adler2024-01-131-2/+2
| | | | If it is negative, then the code will enter an infinite loop.
* Fix the copy of pending_buf in deflateCopy() for the LIT_MEM case.Hans Wennborg2024-01-132-7/+5
|
* Fix pending buffer overflow assert with LIT_MEM allocation.Hans Wennborg2024-01-131-1/+1
| | | | | | | Since each element in s->d_buf is 2 bytes, the sx index should be multiplied by 2 in the assert. Fixes #897
* Remove fdopen #defines in zutil.h.Mark Adler2024-01-131-22/+1
| | | | fdopen() is not used by zlib anymore. The #defines are vestigial.
* Add bounds checking to ERR_MSG() macro, used by zError().Mark Adler2024-01-131-1/+1
|
* Correct repeated words in source file comments and a readme.Paul Ivanov2023-11-147-15/+15
|
* Fix decision on the emission of Zip64 end records in minizip.Mark Adler2023-11-071-1/+1
| | | | | | | | | | The appnote says that if the number of entries in the end record is 0xffff, then the actual number of entries will be found in the Zip64 end record. Therefore if the number of entries is equal to 0xffff, it can't be in the end record by itself, since that is an instruction to get the number from the Zip64 end record. This code would just store 0xffff in the end record in that case, not making a Zip64 end record. This commit fixes that.
* Add LIT_MEM define to use more memory for a small deflate speedup.Mark Adler2023-09-213-3/+67
| | | | | | | | | A bug fix in zlib 1.2.12 resulted in a slight slowdown (1-2%) of deflate. This commit provides the option to #define LIT_MEM, which uses more memory to reverse most of that slowdown. The memory for the pending buffer and symbol buffers is increased by 25%, which increases the total memory usage with the default parameters by about 6%.
* Make internal functions static in the test code.Xin LI2023-09-032-27/+28
| | | | To avoid warnings when building with -Wmissing-prototypes.
* Fix bug in inflateSync() for data held in bit buffer.Mark Adler2023-08-241-1/+1
|
* Update miniunz version.tbeu2023-08-201-1/+1
|