Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 7d876a9

Browse files
committed
Bump zlib to 1.2.13.
Due to security issue, zlib 1.2.12 is yanked, just like 1.2.11 was before. So builds not using TF mirror will break. See https://www.zlib.net and CVE-2022-37434.
1 parent 9763d0a commit 7d876a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tensorflow/workspace.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,12 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
628628
tf_http_archive(
629629
name = "zlib_archive",
630630
build_file = clean_dep("//third_party:zlib.BUILD"),
631-
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
632-
strip_prefix = "zlib-1.2.11",
631+
sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
632+
strip_prefix = "zlib-1.2.13",
633633
system_build_file = clean_dep("//third_party/systemlibs:zlib.BUILD"),
634634
urls = [
635-
"https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
636-
"https://zlib.net/zlib-1.2.11.tar.gz",
635+
"https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.13.tar.gz",
636+
"https://zlib.net/fossils/zlib-1.2.13.tar.gz",
637637
],
638638
)
639639

third_party/png.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ genrule(
6363
name = "snappy_stubs_public_h",
6464
srcs = ["scripts/pnglibconf.h.prebuilt"],
6565
outs = ["pnglibconf.h"],
66-
cmd = "sed -e 's/PNG_ZLIB_VERNUM 0/PNG_ZLIB_VERNUM 0x12b0/' $< >$@",
66+
cmd = "sed -e 's/PNG_ZLIB_VERNUM 0/PNG_ZLIB_VERNUM 0x12d0/' $< >$@",
6767
)
6868

6969
config_setting(

0 commit comments

Comments
 (0)