[UBSan] Temporarily disable UBSan for gtest and file

These should be the remaining instances of UB errors we see.

Bug: fuchsia:46805
Change-Id: Id8285386fd6cb52518f6076ddb79ac60025f9f87
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2067754
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
Leonard Chan 2020-02-21 20:40:08 -08:00 committed by Commit Bot
parent d632f625a2
commit 8bad6f140e
3 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,8 @@ config("disable_ubsan") {
visibility = [ visibility = [
"snapshot:snapshot", "snapshot:snapshot",
"minidump:minidump_test", "minidump:minidump_test",
"third_party/gtest:gtest",
"util:util",
] ]
} }

View File

@ -34,6 +34,7 @@ if (crashpad_is_in_chromium) {
public_deps = [ public_deps = [
"//third_party/googletest:gtest", "//third_party/googletest:gtest",
] ]
public_configs = [ "../..:disable_ubsan" ]
} }
group("gmock") { group("gmock") {
testonly = true testonly = true

View File

@ -514,6 +514,8 @@ static_library("util") {
if (crashpad_is_android || crashpad_is_linux) { if (crashpad_is_android || crashpad_is_linux) {
deps += [ "../third_party/lss" ] deps += [ "../third_party/lss" ]
} }
configs += [ "..:disable_ubsan" ]
} }
if (!crashpad_is_android) { if (!crashpad_is_android) {