From 16661ba8c0103c2571e84a59a107c9e41dbe60dc Mon Sep 17 00:00:00 2001 From: Jeff McGlynn Date: Thu, 16 Aug 2018 16:53:26 -0700 Subject: Fix ASAN failures in integer_sequence_codec and partition Introduce UTILS_RELEASE_ASSERT, which crashes if the condition isn't met, even on release builds. Update integer_sequence_codec and partition to use the new tests to validate input parameters, and update the tests so that they expect the crash to occur even on release builds. Bug: 112691516, 112669735 Change-Id: Ic82edeffc64ca0f2b0d17f1c63563dfd8d9cdd71 --- tools/bazel.rc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tools/bazel.rc (limited to 'tools') diff --git a/tools/bazel.rc b/tools/bazel.rc new file mode 100644 index 0000000..e47b006 --- /dev/null +++ b/tools/bazel.rc @@ -0,0 +1,6 @@ +# For building with the clang-specific flavor of ASAN. +build:clang-asan --client_env=CC=clang-5.0 +build:clang-asan --copt -g3 +build:clang-asan --copt -fsanitize=address +build:clang-asan --linkopt -fsanitize=address +build:clang-asan --copt -fno-omit-frame-pointer -- cgit v1.2.3