Jump to content

zlib

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 203.110.131.5 (talk) at 02:52, 24 November 2008 (→‎See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

zlib
Stable release
1.2.3 / 2005-07-18
Repository
Written inC
Operating systemcross platform
Typedata compression
Licensezlib license
Websitezlib.net

zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program. The first public version, 0.9, was released on 1 May 1995 and was originally intended for use with libpng image library. It is free software, distributed under the zlib license.

As of March 2007, zlib is included in Coverity’s Department of Homeland Security-sponsored ongoing examination of select open-source projects.[1]

Applications

Today, zlib is something of a de facto standard, to the point that zlib and DEFLATE are often used interchangeably in standards documents. Thousands of applications rely on it for compression, directly or indirectly,[2] including:

  • The Linux kernel, where it is used to implement compressed network protocols, compressed file systems and to decompress the kernel image itself at boot time.
  • libpng, the reference implementation for the PNG image format, which specifies DEFLATE as the stream compression for its bitmap data.
  • The Apache HTTP server, which uses zlib to implement HTTP/1.1.
  • The OpenSSH client and server, which rely on zlib to perform the optional compression offered by the Secure Shell protocol.
  • The OpenSSL and GnuTLS security libraries, which can optionally use zlib to compress TLS connections.
  • The FFmpeg multimedia library, which uses zlib to read and write the DEFLATE-compressed parts of stream formats such as Matroska.
  • The rsync remote file synchronizer, which uses zlib to implement optional protocol compression.
  • The dpkg and RPM package managers, which use zlib to unpack files from compressed software packages.
  • The Subversion and CVS version control systems, which use zlib to compress traffic to and from remote repositories.

zlib is also used in many embedded devices because the code is portable, liberally-licensed and has a relatively small memory footprint.

See also

References

  1. ^ Press release: Critical Open Source Software Projects Receive 6,000 Bug Fixes in First Year of Coverity Scan Site, Coverity, 2007-03-27, retrieved 2007-12-10.
  2. ^ Gailly, Jean-loup; Adler, Mark (2002-04-18), zlib Applications.