William Leara
16799d064b
Fix "the the" in examples/gzlog.c.
10 months ago
William Leara
190168cc1c
Correct case of MSDOS in contrib/minizip/miniunz.c.
10 months ago
William Leara
762cf49e63
Refer to correct function in contrib/minizip/unzip.c comment.
10 months ago
Mark Adler
36e369e1a5
Note that the len2 argument of crc_combine*() must be non-negative.
...
If it is negative, then the code will enter an infinite loop.
10 months ago
Hans Wennborg
60c31985ec
Fix the copy of pending_buf in deflateCopy() for the LIT_MEM case.
10 months ago
Hans Wennborg
ee474ff2d1
Fix pending buffer overflow assert with LIT_MEM allocation.
...
Since each element in s->d_buf is 2 bytes, the sx index should be
multiplied by 2 in the assert.
Fixes #897
10 months ago
Mark Adler
4bd9a71f35
Remove fdopen #defines in zutil.h.
...
fdopen() is not used by zlib anymore. The #defines are vestigial.
10 months ago
Mark Adler
431a9b65ea
Add bounds checking to ERR_MSG() macro, used by zError().
10 months ago
Paul Ivanov
643e17b749
Correct repeated words in source file comments and a readme.
1 year ago
Mark Adler
15c45adb76
Fix decision on the emission of Zip64 end records in minizip.
...
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.
1 year ago
Mark Adler
ac8f12c97d
Add LIT_MEM define to use more memory for a small deflate speedup.
...
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%.
1 year ago
Xin LI
bd9c329c10
Make internal functions static in the test code.
...
To avoid warnings when building with -Wmissing-prototypes.
1 year ago
Mark Adler
5af7cef45e
Fix bug in inflateSync() for data held in bit buffer.
1 year ago
tbeu
88e50f1705
Update miniunz version.
1 year ago
Mark Adler
79a0e447a0
Update version and date in contrib/nuget.
1 year ago
Mark Adler
8988e03256
Update version numbers and year in contrib/vstudio/vc17.
1 year ago
Mark Adler
7192d692be
Update vc directory in contrib/nuget.
1 year ago
Mark Adler
60bfe641af
Rename contrib/vstudio/vc143 to vc17.
...
This makes it consistent with the other vstudio projects, which
use the version number.
1 year ago
Hans Wennborg
73331a6a04
Reject overflows of zip header fields in minizip.
...
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.
1 year ago
Mark Adler
726e18943d
Remove Windows ARM and ARM64 builds from cmake workflow.
...
They were added in the VS2022 commit, but failed when run.
1 year ago
AraHaan
4a47c1bf3d
Add project and solution files for building a nuget package.
1 year ago
AraHaan
d7de5971f4
Add VS2022 project files.
...
Also replaced Itanium with ARM and ARM64 configurations.
1 year ago
Mark Adler
4c5a81c2ae
Remove carriage returns from contrib/vstudio/readme.txt.
1 year ago
Mark Adler
0f68a0d89d
Limit the length of Darwin shared library version number.
1 year ago
Mark Adler
5dc7681ff1
Fix version numbering for Darwin shared library.
1 year ago
Mark Adler
3a98b57e55
Change version number on develop branch to 1.3.0.1.
1 year ago
Mark Adler
09155eaa2f
zlib 1.3
1 year ago
Mark Adler
899ffefb19
Use original make and options when Makefile runs make.
...
Also avoid the use of the -C option for non-GNU make.
1 year ago
Mark Adler
25bbd7f5a6
Avoid uninitialized and unused warnings in contrib/minizip.
1 year ago
Mark Adler
e13289e307
Fix typo in preceding reversion commit.
1 year ago
Mark Adler
f5ae600cc7
Revert flipping of load flags in Makefile.in for z/OS.
...
It looked innocuous enough and worked on macOS, but failed on
Ubuntu.
1 year ago
OldWorldOrdr
daf27aed08
Look for a cross-compile libtool first in configure.
...
Permit cross-compilation for Darwin.
1 year ago
Bruno S Marques
9889e98868
Avoid cmake deprecation warning.
1 year ago
Mark Adler
22fc20898b
Clarify requirement in zlib.h to avoid multiple flush markers.
1 year ago
Mark Adler
5f52b25059
Move load flags before object file in Makefile.in for Z/OS.
1 year ago
Bastian Germann
efc9c7b801
Add license to contrib/untgz.
...
A zlib license was agreed to by the authors.
1 year ago
Mark Adler
d524e2a818
zlib now uses ANSI C function prototypes, so zlib2ansi not needed.
1 year ago
Mark Adler
d982514782
Fix bug when using gzflush() with a very small buffer.
1 year ago
Dimitri Papadopoulos
6951bc609b
Fix typos in contrib/ada.
1 year ago
Mark Adler
89ef46ba09
Remove redundant includes in minizip.
1 year ago
Mark Adler
384e50eea4
Remove TRYFREE macro from minizip.
1 year ago
Dimitri Papadopoulos
c97a8f1e67
Replace gcc-9 with gcc-11 for macOS testing.
...
At some point, macos-latest stopped supporting gcc-9, and moved to
gcc-11 and gcc-12.
1 year ago
Andrzej Hunt
981ee7570a
Suppress MSAN detections in deflate's slide_hash().
...
slide_hash() knowingly reads potentially uninitialized memory, see
comment lower down about prev[n] potentially being garbage. In
this case, the result is never used.
1 year ago
Mark Adler
1411ccafc0
Add memory sanitizer to configure (--memory).
...
This also adds --address for the address sanitizer, in addition to
the existing --sanitizer. -fno-omit-frame-pointer has been added
for both sanitizers to improve the error reporting.
1 year ago
Mark Adler
7dd6aa7245
Fix bug when gzungetc() is used immediately after gzopen().
1 year ago
Dimitri Papadopoulos
c7ddcc2e0e
Fix some spelling errors.
1 year ago
Mark Adler
2bcc748735
Add minizip testing to Makefile.
1 year ago
Eugene Golushkov
be7aa11551
Read multiple bytes instead of byte-by-byte in minizip unzip.c.
...
Use a single ZREAD64 call in the unz64local_getShort/Long/Long64
implementation, rather than read it byte by byte.
1 year ago
Gilles Vollant
aa154e3da0
Support Haiku in minizip.
1 year ago
Xiang Xiao
f679a939d3
Correct dummy filetime() prototype in minizip.c.
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
1 year ago