summaryrefslogtreecommitdiff
path: root/test (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-22Move the load flags before the object files in Makefile tests.Mark Adler1-5/+5
2024-01-22Add target include directories to CMakeLists.txt.tr1cks1-0/+2
This enables the addition of zlib to other projects.
2024-01-21Use Makefile compiler for minizip-test target.Mark Adler2-2/+2
2024-01-20Remove -w compile option in configure test.Mark Adler1-1/+1
Not all C compilers have a -w option.
2024-01-19Use updated zconf.h when building out of directory with configure.Dan Kegel1-1/+1
2024-01-19Remove carriage returns from zlib.map.Mark Adler1-100/+100
2024-01-19Fix a bug in ZLIB_DEBUG compiles in check_match().Mark Adler1-6/+14
This avoids trying to compare a match starting one byte before the current window. Thanks to @zmodem (Hans) for discovering this.
2024-01-19Revert "Add a CMake option to link the C runtime statically."Mark Adler1-21/+4
This reverts commit 44dc43ab047d65febed972a17b0e3bf7e994e8f2.
2024-01-17Remove unused Z_ARG macro.Mark Adler3-24/+0
2024-01-17Fix cmake build on AIX.gastush1-1/+1
The --version-script linker option is not supported by the linker on AIX systems
2024-01-17Remove mentions of an official zlib DLL distribution.Mark Adler2-20/+3
There used to be one, but no more. It is up to the user or vendor to compile zlib.
2024-01-17Correct typos in source code.Dimitri Papadopoulos3-6/+6
2024-01-17Make the existence of gz_intmax() unconditional.Milan Bulat2-10/+6
gz_intmax() is noted in zlib.map. This assures it's always there.
2024-01-17Add cmake option to control the build of the example executables.Peter Taylor1-17/+19
2024-01-17Neutralize zip file traversal attacks in miniunz.Matt Wilson1-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>
2024-01-17Add a CMake option to link the C runtime statically.tbeu1-4/+22
2024-01-17Fix random typos over several source and text files.THE-Spellchecker8-11/+11
2024-01-17Fix "the the" in examples/gzlog.c.William Leara1-2/+2
2024-01-17Correct case of MSDOS in contrib/minizip/miniunz.c.William Leara1-1/+1
2024-01-17Refer to correct function in contrib/minizip/unzip.c comment.William Leara1-1/+1
2024-01-13Note that the len2 argument of crc_combine*() must be non-negative.Mark Adler1-2/+2
If it is negative, then the code will enter an infinite loop.
2024-01-13Fix the copy of pending_buf in deflateCopy() for the LIT_MEM case.Hans Wennborg2-7/+5
2024-01-13Fix pending buffer overflow assert with LIT_MEM allocation.Hans Wennborg1-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
2024-01-13Remove fdopen #defines in zutil.h.Mark Adler1-22/+1
fdopen() is not used by zlib anymore. The #defines are vestigial.
2024-01-13Add bounds checking to ERR_MSG() macro, used by zError().Mark Adler1-1/+1
2023-11-14Correct repeated words in source file comments and a readme.Paul Ivanov7-15/+15
2023-11-07Fix decision on the emission of Zip64 end records in minizip.Mark Adler1-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.
2023-09-21Add LIT_MEM define to use more memory for a small deflate speedup.Mark Adler3-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%.
2023-09-03Make internal functions static in the test code.Xin LI2-27/+28
To avoid warnings when building with -Wmissing-prototypes.
2023-08-24Fix bug in inflateSync() for data held in bit buffer.Mark Adler1-1/+1
2023-08-20Update miniunz version.tbeu1-1/+1
2023-08-19Update version and date in contrib/nuget.Mark Adler1-2/+2
2023-08-19Update version numbers and year in contrib/vstudio/vc17.Mark Adler2-5/+5
2023-08-19Update vc directory in contrib/nuget.Mark Adler1-8/+8
2023-08-19Rename contrib/vstudio/vc143 to vc17.Mark Adler9-0/+0
This makes it consistent with the other vstudio projects, which use the version number.
2023-08-19Reject overflows of zip header fields in minizip.Hans Wennborg1-0/+11
This checks the lengths of the file name, extra field, and comment that would be put in the zip headers, and rejects them if they are too long. They are each limited to 65535 bytes in length by the zip format. This also avoids possible buffer overflows if the provided fields are too long.
2023-08-19Remove Windows ARM and ARM64 builds from cmake workflow.Mark Adler1-10/+0
They were added in the VS2022 commit, but failed when run.
2023-08-19Add project and solution files for building a nuget package.AraHaan3-1/+76
2023-08-19Add VS2022 project files.AraHaan11-1/+3559
Also replaced Itanium with ARM and ARM64 configurations.
2023-08-19Remove carriage returns from contrib/vstudio/readme.txt.Mark Adler1-75/+75
2023-08-18Limit the length of Darwin shared library version number.Mark Adler1-2/+2
2023-08-18Fix version numbering for Darwin shared library.Mark Adler1-2/+3
2023-08-18Change version number on develop branch to 1.3.0.1.Mark Adler22-46/+49
2023-08-18zlib 1.3v1.3Mark Adler31-74/+87
2023-08-17Use original make and options when Makefile runs make.Mark Adler1-2/+2
Also avoid the use of the -C option for non-GNU make.
2023-08-17Avoid uninitialized and unused warnings in contrib/minizip.Mark Adler2-2/+8
2023-08-17Fix typo in preceding reversion commit.Mark Adler1-1/+1
2023-08-17Revert flipping of load flags in Makefile.in for z/OS.Mark Adler1-6/+6
It looked innocuous enough and worked on macOS, but failed on Ubuntu.
2023-08-17Look for a cross-compile libtool first in configure.OldWorldOrdr1-1/+3
Permit cross-compilation for Darwin.
2023-08-17Avoid cmake deprecation warning.Bruno S Marques1-1/+1