Dimitri Papadopoulos
c7ddcc2e0e
Fix some spelling errors.
1 year ago
Mark Adler
7e6dc429af
Add a NOPRIME #define to zran.c to not use inflatePrime().
...
This supports zlib versions earlier than 1.2.3 (July 2005), as
well as incomplete clones of zlib that do not have inflatePrime().
2 years ago
Mark Adler
eb0e038b29
Rewrite of zran in examples. See version history in zran.c.
2 years ago
Mark Adler
a9b4c1de37
Update zlib_how.html to match the web page, and add a license.
2 years ago
Mark Adler
5752b171fd
Fix some typos.
...
No code changes.
2 years ago
Mark Adler
0206436615
Fix memory leak on error in gzlog.c.
...
Thank you Adam Richter.
6 years ago
Mark Adler
921d81b2a8
Fix the zran.c example to work on a multiple-member gzip file.
6 years ago
Mark Adler
354fa43d12
Add gznorm.c example, which normalizes gzip files.
6 years ago
Mark Adler
cd16ff0b3a
Show all the codes for the maximum tables size in enough.c.
6 years ago
Mark Adler
d00c147f53
Clarify that prefix codes are counted in enough.c.
...
There is no assurance that all prefix codes are reachable as
optimal Huffman codes for the numbers of symbols encountered in
a deflate block. This code considers all possible prefix codes,
which might be a larger set than all possible Huffman codes,
depending on the constraints.
6 years ago
Mark Adler
5b1381006b
Use inline function instead of macro for index in enough.c.
6 years ago
Mark Adler
8ba2cdb6bd
Clean up code style in enough.c, update version.
6 years ago
Mark Adler
4c14b51587
Use a macro for the printf format of big_t in enough.c.
6 years ago
Mark Adler
194e558efe
Use a structure to make globals in enough.c evident.
6 years ago
Mark Adler
ae49d1472e
Avoid an undefined behavior of memcpy() in gzappend().
7 years ago
Mark Adler
2fa463bacf
zlib 1.2.9
8 years ago
Mark Adler
03614c56ad
Fix some typos.
8 years ago
Mark Adler
51a223def4
Avoid use of DEBUG macro -- change to ZLIB_DEBUG.
9 years ago
Mark Adler
e69a9ceee0
Check for input buffer malloc failure in examples/gzappend.c.
12 years ago
Mark Adler
bd143f1c0a
Fix memory allocation error in examples/zran.c [Nor].
12 years ago
Mark Adler
17068938ce
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.
12 years ago
Mark Adler
3d9df6ecf8
Clean up examples/gzlog.[ch] comparisons of different types.
12 years ago
Mark Adler
a2981775a9
Clean up examples/gzjoin.c for z_const usage.
12 years ago
Mark Adler
aa210a1b84
Fix example/gzappend.c for proper z_const usage.
12 years ago
Mark Adler
360c3e9532
Update examples/gun.c for proper z_const usage.
12 years ago
Mark Adler
fb4e0599a5
Fix argument checks in gzlog_compress() and gzlog_write().
13 years ago
Mark Adler
1b57de3aef
Move example.c and minigzip.c to test/.
13 years ago
Mark Adler
1bd2fa1b24
Move example.c and minigzip.c to examples/ directory.
13 years ago
Mark Adler
e0ff940e1a
zlib 1.2.3.8
13 years ago
Mark Adler
dc5a43ebfa
zlib 1.2.3.6
13 years ago
Mark Adler
f6194ef39a
zlib 1.2.3.4
13 years ago
Mark Adler
b1c19ca6d8
zlib 1.2.3.1
13 years ago
Mark Adler
9c3a583021
zlib 1.2.2.4
13 years ago
Mark Adler
6b8233bfe0
zlib 1.2.2.3
13 years ago
Mark Adler
0484693e17
zlib 1.2.2.2
13 years ago