Skip to content

Commit

Permalink
Update ZLIB to v1.2.12-p0 (#545)
Browse files Browse the repository at this point in the history
Write access (compression) in zlib has a bug, we need to update to 1.2.12 for the security fix

From https://zlib.net/

> Version 1.2.12 has these key improvements over 1.2.11:
>
> - Fix a deflate bug when using the `Z_FIXED` strategy that can result in out-of-bound accesses.
> - Fix a deflate bug when the window is full in `deflate_stored()`.
> - Speed up CRC-32 computations by a factor of 1.5 to 3.
> - Use the hardware CRC-32 instruction on ARMv8 processors.
> - Speed up crc32_combine() with powers of x tables.
> - Add `crc32_combine_gen()` and `crc32_combine_op()` for fast combines.

Fixes: #544
  • Loading branch information
NeroBurner committed Apr 11, 2022
1 parent 81fbe4f commit 5c22e4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ hunter_default_version(WebKit VERSION 0.0.2-p0)
hunter_default_version(WebP VERSION 1.2.2-p0)
hunter_default_version(WinSparkle VERSION 0.4.0)
hunter_default_version(YAJL VERSION 2.1.0-p0)
hunter_default_version(ZLIB VERSION 1.2.11-p1)
hunter_default_version(ZLIB VERSION 1.2.12-p0)
hunter_default_version(ZMQPP VERSION 4.2.0-p0)
hunter_default_version(ZeroMQ VERSION 4.2.3-p1)
hunter_default_version(Zug VERSION 0.0.1-be20cae)
Expand Down
11 changes: 11 additions & 0 deletions cmake/projects/ZLIB/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ hunter_add_version(
fbb8be77db5cb3f4d1b269f273a357d22ccc4b32
)

hunter_add_version(
PACKAGE_NAME
ZLIB
VERSION
"1.2.12-p0"
URL
"https://github.com/cpp-pm/zlib/archive/v1.2.12-p0.tar.gz"
SHA1
3c5ce030d621a9f33b112ac51cb5068f11d023fb
)

hunter_add_version(
PACKAGE_NAME
ZLIB
Expand Down

0 comments on commit 5c22e4e

Please sign in to comment.