Mark Adler
5752b171fd
Fix some typos.
...
No code changes.
2022-08-23 15:35:13 -07:00
Mark Adler
0206436615
Fix memory leak on error in gzlog.c.
...
Thank you Adam Richter.
2019-05-25 22:23:20 -07:00
Mark Adler
921d81b2a8
Fix the zran.c example to work on a multiple-member gzip file.
2018-10-14 09:57:34 -07:00
Mark Adler
354fa43d12
Add gznorm.c example, which normalizes gzip files.
2018-10-07 13:55:00 -07:00
Mark Adler
cd16ff0b3a
Show all the codes for the maximum tables size in enough.c.
2018-08-05 23:08:33 -07:00
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.
2018-08-05 23:08:25 -07:00
Mark Adler
5b1381006b
Use inline function instead of macro for index in enough.c.
2018-08-05 23:08:13 -07:00
Mark Adler
8ba2cdb6bd
Clean up code style in enough.c, update version.
2018-08-01 19:51:56 -07:00
Mark Adler
4c14b51587
Use a macro for the printf format of big_t in enough.c.
2018-08-01 01:39:47 -07:00
Mark Adler
194e558efe
Use a structure to make globals in enough.c evident.
2018-08-01 01:37:03 -07:00
Mark Adler
ae49d1472e
Avoid an undefined behavior of memcpy() in gzappend().
2017-10-12 19:27:59 -07:00
Mark Adler
2fa463bacf
zlib 1.2.9
2016-12-31 23:37:10 -08:00
Mark Adler
03614c56ad
Fix some typos.
2016-10-30 08:49:01 -07:00
Mark Adler
51a223def4
Avoid use of DEBUG macro -- change to ZLIB_DEBUG.
2015-07-28 22:44:31 -07:00
Mark Adler
e69a9ceee0
Check for input buffer malloc failure in examples/gzappend.c.
2012-10-11 16:10:59 -07:00
Mark Adler
bd143f1c0a
Fix memory allocation error in examples/zran.c [Nor].
2012-09-29 22:37:55 -07:00
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.
2012-08-18 18:07:26 -07:00
Mark Adler
3d9df6ecf8
Clean up examples/gzlog.[ch] comparisons of different types.
2012-08-18 18:07:04 -07:00
Mark Adler
a2981775a9
Clean up examples/gzjoin.c for z_const usage.
2012-08-14 00:30:44 -07:00
Mark Adler
aa210a1b84
Fix example/gzappend.c for proper z_const usage.
2012-08-14 00:29:58 -07:00
Mark Adler
360c3e9532
Update examples/gun.c for proper z_const usage.
2012-08-13 21:49:10 -07:00
Mark Adler
fb4e0599a5
Fix argument checks in gzlog_compress() and gzlog_write().
2012-07-08 17:01:13 -07:00
Mark Adler
1b57de3aef
Move example.c and minigzip.c to test/.
2011-11-27 14:15:32 -08:00
Mark Adler
1bd2fa1b24
Move example.c and minigzip.c to examples/ directory.
2011-10-09 09:50:48 -07:00
Mark Adler
e0ff940e1a
zlib 1.2.3.8
2011-09-09 23:27:17 -07:00
Mark Adler
dc5a43ebfa
zlib 1.2.3.6
2011-09-09 23:26:58 -07:00
Mark Adler
f6194ef39a
zlib 1.2.3.4
2011-09-09 23:26:40 -07:00
Mark Adler
b1c19ca6d8
zlib 1.2.3.1
2011-09-09 23:25:27 -07:00
Mark Adler
9c3a583021
zlib 1.2.2.4
2011-09-09 23:24:52 -07:00
Mark Adler
6b8233bfe0
zlib 1.2.2.3
2011-09-09 23:24:43 -07:00
Mark Adler
0484693e17
zlib 1.2.2.2
2011-09-09 23:24:33 -07:00