[rapidjson] Enable ubsan/lsan.
The issue must be fixed with the rapidjson roll. This CL removes
build flags to disable sanitizer.
Bug: 44348
Test: fx set core.arm64 --variant host_asan-ubsan --variant ubsan
Build and run successfully.
Change-Id: I72cff5c214b3d07c935c3cbb550eaecfe0d5c853
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/rapidjson/+/458920
Reviewed-by: Leonard Chan <leonardchan@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index e2581b5..92b7a01 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -40,10 +40,6 @@
"RAPIDJSON_HAS_CXX11_TYPETRAITS",
"RAPIDJSON_HAS_CXX11_NOEXCEPT",
]
-
- # TODO(44348): UBSan has found an instance of undefined behavior in this target.
- # Disable UBSan for this target temporarily until it is migrated into CI/CQ.
- cflags = [ "-fno-sanitize=undefined" ]
}
source_set("rapidjson") {
@@ -87,10 +83,4 @@
]
public_configs = [ ":rapidjson_config" ]
-
- if (!defined(zx) || zx != "/") {
- public_deps = [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
- } else {
- public_deps = [ "$zx/public/gn/config/instrumentation:suppress-lsan.DO-NOT-USE-THIS" ]
- }
}
diff --git a/BUILD.zircon.gn b/BUILD.zircon.gn
index e2581b5..92b7a01 100644
--- a/BUILD.zircon.gn
+++ b/BUILD.zircon.gn
@@ -40,10 +40,6 @@
"RAPIDJSON_HAS_CXX11_TYPETRAITS",
"RAPIDJSON_HAS_CXX11_NOEXCEPT",
]
-
- # TODO(44348): UBSan has found an instance of undefined behavior in this target.
- # Disable UBSan for this target temporarily until it is migrated into CI/CQ.
- cflags = [ "-fno-sanitize=undefined" ]
}
source_set("rapidjson") {
@@ -87,10 +83,4 @@
]
public_configs = [ ":rapidjson_config" ]
-
- if (!defined(zx) || zx != "/") {
- public_deps = [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
- } else {
- public_deps = [ "$zx/public/gn/config/instrumentation:suppress-lsan.DO-NOT-USE-THIS" ]
- }
}