zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1), the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression.
| Tags | Software Development Libraries Archiving Compression |
|---|---|
| Licenses | zlib/libpng |
| Operating Systems | OS Independent |
| Implementation | C |
Recent releases


Changes: A potential security vulnerability when decoding invalid compressed data was eliminated. A potential security vulnerability when decoding specially crafted compressed data was eliminated. A bug when decompressing dynamic blocks with no distance codes was fixed. A CRC check bug in gzread() after gzungetc() was fixed. An error is no longer returned when using gzread() on an empty file.


Changes: This release eliminates a potential security vulnerability in 1.2.1, so all users of 1.2.1 should upgrade immediately. It eliminates a potential security vulnerability when decoding invalid compressed data, fixes a bug when decompressing dynamic blocks with no distance codes, and does not return an error when using gzread() on an empty file.


Changes: This release adds many improvements and features to zlib.


Changes: A double free bug has been fixed.


Changes: Version 1.1.3 fixes a number of buglets in the gz* functions and one ``inflate input-buffer bug that shows up on rare but persistent occasions''; it also adds a number of new contrib items, including 586 and 686 assembler routines.