forked from clearlinux-pkgs/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCVE-2019-15133.patch
77 lines (73 loc) · 2.62 KB
/
CVE-2019-15133.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From 45d20c2e6d85eb0e216425abfd81a35892bd8459 Mon Sep 17 00:00:00 2001
From: Clayne Robison <[email protected]>
Date: Wed, 9 Oct 2019 09:46:47 +0000
Subject: [PATCH] [Intel MKL] Upgrading giflib to fix CVE-2019-15133
---
tensorflow/workspace.bzl | 8 ++++----
third_party/gif.BUILD | 24 ++++++++++++------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 55d7eb93..79d347ee 100755
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -265,12 +265,12 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
tf_http_archive(
name = "gif_archive",
build_file = clean_dep("//third_party:gif.BUILD"),
- sha256 = "34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1",
- strip_prefix = "giflib-5.1.4",
+ sha256 = "31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd",
+ strip_prefix = "giflib-5.2.1",
system_build_file = clean_dep("//third_party/systemlibs:gif.BUILD"),
urls = [
- "http://mirror.tensorflow.org/ufpr.dl.sourceforge.net/project/giflib/giflib-5.1.4.tar.gz",
- "http://pilotfiber.dl.sourceforge.net/project/giflib/giflib-5.1.4.tar.gz",
+ "https://storage.googleapis.com/mirror.tensorflow.org/ufpr.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz",
+ "http://pilotfiber.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz",
],
)
diff --git a/third_party/gif.BUILD b/third_party/gif.BUILD
index cbe730fe..51621ba9 100644
--- a/third_party/gif.BUILD
+++ b/third_party/gif.BUILD
@@ -8,18 +8,18 @@ exports_files(["COPYING"])
cc_library(
name = "gif",
srcs = [
- "lib/dgif_lib.c",
- "lib/egif_lib.c",
- "lib/gif_err.c",
- "lib/gif_font.c",
- "lib/gif_hash.c",
- "lib/gif_hash.h",
- "lib/gif_lib_private.h",
- "lib/gifalloc.c",
- "lib/openbsd-reallocarray.c",
- "lib/quantize.c",
+ "dgif_lib.c",
+ "egif_lib.c",
+ "gif_err.c",
+ "gif_font.c",
+ "gif_hash.c",
+ "gif_hash.h",
+ "gif_lib_private.h",
+ "gifalloc.c",
+ "openbsd-reallocarray.c",
+ "quantize.c",
],
- hdrs = ["lib/gif_lib.h"],
+ hdrs = ["gif_lib.h"],
defines = select({
":android": [
"S_IREAD=S_IRUSR",
@@ -28,7 +28,7 @@ cc_library(
],
"//conditions:default": [],
}),
- includes = ["lib/."],
+ includes = ["."],
visibility = ["//visibility:public"],
deps = select({
":windows": [":windows_polyfill"],
--
2.21.0