Security note: This version fixes CVE-2018-25032 (a memory corruption issue in deflate) – ensure you are not using earlier versions like 1.2.11 or 1.2.8.
sudo make install
After installation, you'll find:
Extract and open a Developer Command Prompt:
nmake -f win32/Makefile.msc
nmake -f win32/Makefile.msc test
The xz suffix in zlib1213tarxz is a deliberate choice by maintainers to reduce bandwidth and storage costs. Here’s a comparison using a typical zlib source tree:
| Format | Size (approx) | Decompression Speed | Compression Ratio (Best) |
| :--- | :--- | :--- | :--- |
| zlib-1.2.13.tar (uncompressed) | ~1.2 MB | N/A | N/A |
| zlib-1.2.13.tar.gz (gzip) | ~550 KB | Very Fast | Moderate |
| zlib-1.2.13.tar.xz (LZMA2) | ~380 KB | Slower | Excellent |
For a small source archive like zlib, the difference is only ~170 KB, but for larger projects (e.g., the Linux kernel), xz can save gigabytes of data transfer.
zlib1213tarxz represents a crucial security update for the Zlib library. If you are holding this file, it is likely the source code for the stable release of Zlib 1.2.13. It is safe to use, highly compressed, and recommended for any system requiring the DEFLATE algorithm implementation, provided you verify the SHA-256 hash before installation.
Given this, I'll create a hypothetical blog post that could be relevant: