aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/jsoncpp.BUILD
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-06-21 22:05:47 -0700
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-06-21 22:05:46 -0700
commitd932155363d6ded97dda38ce799168d27566978b (patch)
tree3221394d7a0a3c266106289e179f1d77966c2f47 /third_party/jsoncpp.BUILD
parentb302b73c4d0fbca4fcc015ab86040e21dd697bd4 (diff)
Update jsoncpp to 1.8.4 (#20182)
* Update jsoncpp to 1.8.4 This fix updates the jsoncpp to 1.8.4 to address the issue raised in 20170. The jsoncpp used in tf was old and may contain security issues. This fix fixes 20170. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add JSON_HAS_INT64 define to jsoncpp build Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix data type conversion issue for jsoncpp. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix build by include "version.h" Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'third_party/jsoncpp.BUILD')
-rw-r--r--third_party/jsoncpp.BUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/third_party/jsoncpp.BUILD b/third_party/jsoncpp.BUILD
index 65f98410b2..cf3cba0555 100644
--- a/third_party/jsoncpp.BUILD
+++ b/third_party/jsoncpp.BUILD
@@ -6,7 +6,6 @@ cc_library(
name = "jsoncpp",
srcs = [
"include/json/assertions.h",
- "src/lib_json/json_batchallocator.h",
"src/lib_json/json_reader.cpp",
"src/lib_json/json_tool.h",
"src/lib_json/json_value.cpp",
@@ -20,9 +19,13 @@ cc_library(
"include/json/json.h",
"include/json/reader.h",
"include/json/value.h",
+ "include/json/version.h",
"include/json/writer.h",
],
- copts = ["-DJSON_USE_EXCEPTION=0"],
+ copts = [
+ "-DJSON_USE_EXCEPTION=0",
+ "-DJSON_HAS_INT64",
+ ],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [":private"],