{"full_name":"madler/zlib","owner":"madler","name":"zlib","shard":"1","url":"https://github.com/madler/zlib","description":"A massively spiffy yet delicately unobtrusive compression library.","homepage":"http://zlib.net/","topics":[],"tag_pages":[],"language":"C","license":"NOASSERTION","avatar":"https://avatars.githubusercontent.com/u/240717?v=4","created_at":"2011-09-10T03:27:31Z","pushed_at":"2026-11-05T05:31:51Z","metrics":{"stars":7228,"forks":2903,"watchers":178,"issues":616,"prs":741,"releases":5,"issues_open":66,"issues_closed":550,"prs_open":109,"prs_closed":629,"prs_merged":3,"discussions":14},"growth":{"day":{"stars":2,"forks":1,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[7218,7223,7223,7225,7226,7228],"forks":[2898,2900,2900,2902,2902,2903],"watchers":[178,178,178,178,178,178],"issues_open":[62,62,62,62,62,66],"prs_open":[104,105,105,105,105,109]},"boards":{},"same_owner":[],"issues":[{"number":346,"title":"Port Chromium optimizations to zlib","comments":27,"created_at":"2018-04-06T22:53:28Z"},{"number":231,"title":"Optimized longest_match function (code submission)","comments":21,"created_at":"2017-02-23T10:17:18Z"},{"number":1183,"title":"How to build zlibwapi.dll with zlib 1.3.2?","comments":19,"created_at":"2026-02-23T22:24:26Z"},{"number":555,"title":"Where can I find the file zlib-1.2.11-win32-x86.zip?","comments":16,"created_at":"2021-04-04T08:52:55Z"},{"number":1232,"title":"CMake: Configured `zconf.h` may be incorrect depending on SCM software","comments":9,"created_at":"2026-05-06T13:14:04Z"},{"number":331,"title":"Cross compiling under OSX is broken","comments":9,"created_at":"2018-01-07T17:34:23Z"},{"number":1169,"title":"preprocessor warnings in zconf.h","comments":8,"created_at":"2026-02-18T12:19:05Z"},{"number":753,"title":"Changing the soname makes tests fail on v1.2.13","comments":8,"created_at":"2022-12-01T10:56:17Z"}],"discussions":[{"number":1370,"title":"How to compress/decompress with huffman only","comments":3,"category":"Q&A","created_at":"2026-11-05T13:35:44Z"},{"number":1324,"title":"Would love a 1.3.3 release please","comments":2,"category":"General","created_at":"2026-10-02T16:26:22Z"},{"number":1166,"title":"zlib 1.3.2 released","comments":1,"category":"Announcements","created_at":"2026-02-17T19:29:24Z"},{"number":1151,"title":"ToDo for release","comments":1,"category":"General","created_at":"2026-01-24T16:10:10Z"},{"number":1149,"title":"Add instructions to generate vstudio projects using cmake","comments":4,"category":"General","created_at":"2026-01-19T20:38:04Z"},{"number":1140,"title":"Supported platforms?","comments":1,"category":"General","created_at":"2025-12-25T17:39:26Z"},{"number":1128,"title":"Version 1.3.1.2 is not a release","comments":4,"category":"Announcements","created_at":"2025-12-09T17:48:03Z"},{"number":1074,"title":"minizip CMake build 32-bit","comments":9,"category":"General","created_at":"2025-07-14T10:40:48Z"}],"latest_release":{"name":"zlib 1.4","tag":"v1.4","published_at":"2026-11-05T07:17:19Z","body":"# zlib 1.4 Release Notes\r\n\r\n_November 4, 2026_\r\n\r\n## **Changes in 1.4 (since 1.3.2)**\r\n\r\n### Breaking changes\r\n\r\n- **CMake:**\r\n  - The minimum CMake version is now 3.15, up from 3.12.\r\n  - Library file names changed on MSVC: `z` is now `libz`, as in `libz.dll`, `libz.lib`, and the static `libzs.lib`. minizip's libraries changed the same way.\r\n  - On Cygwin, the libraries now use the `lib` prefix.\r\n  - Contrib targets and tests built as part of zlib are now prefixed with `zlib_`. Several test targets were renamed to one scheme, for example `zlib_examplestatic` and `minigzipstatic`.\r\n  - The zlib1.dll option `ENABLE_BZIP2` is now `ZLIB1_DLL_ENABLE_BZIP2`.\r\n- When not otherwise determined, `z_off_t` is again `long`, as in 1.3.1, instead of 1.3.2's `long long`. Windows applications built with 1.3.2 headers should be recompiled; see Enhancements for 64-bit offsets.\r\n- `deflateReset()` now resets the gzip header set by `deflateSetHeader()`, as zlib.h has always said. Code relying on the header persisting must set it again.\r\n- Raw deflate that completes exactly at the end of the output buffer now returns `Z_STREAM_END` instead of `Z_OK`, as documented.\r\n- `gzopen()` with `\"x\"` now fails where `O_EXCL` isn't available, instead of truncating an existing file (Trail of Bits TOB-ZLIB-009).\r\n- gzip reading now delivers the data decompressed before a read error, and only then reports the error.\r\n\r\n### Security fixes\r\n\r\n- Non-blocking `gzwrite()` had a buffer overflow; CVE-2026-85091 (reported by mat-mo; also TOB-ZLIB-003).\r\n- `inflateGetDictionary()` could write up to 8 MB past the caller's 32K buffer (Theorem THM-ZLIB-001). This took a zlib header with an invalid window size, then `inflateReset()` or `inflateSync()`. Affects 1.2.8 through 1.3.2.\r\n- `inflateSync()` before the window size was known allocated a one-byte window that could later be overrun (TOB-ZLIB-004).\r\n- `inflatePrime()` could lead `inflate()` to read before the start of the input (TOB-ZLIB-014).\r\n- Repeated `deflatePrime()` calls could write past the pending buffer (TOB-ZLIB-013).\r\n- `inflateBack()` failed to detect distances too far back, and copied uninitialized memory to the output (reported by Kornel Lesiński).\r\n- `gzseek()` forward before any data was written could write uninitialized memory to the gzip output (found by Claude Opus 5.5).\r\n- `deflateResetKeep()` used mid-stream could read outside the window (reported by Jason Gross).\r\n- `gzdopen()` now sets close-on-exec with the correct flag (TOB-ZLIB-008).\r\n- **minizip:**\r\n  - A double free in `block_central_name()` (reported by Oculytic), and a NULL dereference on repeated `zipAlreadyThere()` calls after a bad central directory (reported by Naveed Khan).\r\n  - Validation of extra-field sizes, plus portable, alignment-safe reading, in `zipRemoveExtraInfoBlock()` (reported by Naveed Khan and jmestwa-coder).\r\n  - unzip no longer reads Zip64 values from outside their extra-field record (reported by Mohamed Elnady). It also uses only the Zip64 locator immediately before the end of central directory record (reported by snajafov). Crafted archives could make minizip report different entries than other readers.\r\n  - miniunz could create directories outside the extraction directory (reported by Naveed Khan), and on Windows write files anywhere (reported by Trail of Bits). Fixed by Naveed Khan. Path names are now processed by component.\r\n- contrib/infback9: removed out-of-bounds pointer arithmetic in inftree9.c; CVE-2026-4738 (fix by npt-1707, submitted by CrossVR). The pointers return in bounds before use and no known compiler mishandles this, so the critical rating overstates it, though it could trap on capability hardware such as CHERI.\r\n\r\n### Bug fixes\r\n\r\n- **gzip reading:**\r\n  - Restored the detection of truncated gzip streams, part of which was lost in 1.3.2. Also fixed a complete stream being reported as truncated.\r\n  - An error in the first member is no longer treated as trailing garbage.\r\n  - Corrected pending-skip h","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}