diff options
author | 2019-03-18 23:32:36 -0400 | |
---|---|---|
committer | 2019-03-18 20:32:36 -0700 | |
commit | fe3d5c4c9ca13d7b41414c69cf3039dc82913a5d (patch) | |
tree | 794d500349cd56152b8b3f106f4d4bcc44681d00 /projects/envoy | |
parent | a203ac045ad5e206d6c216d7433feabeedeaaa3e (diff) |
envoy: blacklist some problematic external dep UBSAN. (#2242)
Fix in progress at
https://github.com/protocolbuffers/protobuf/pull/5901, we might not
update Envoy with it for a while.
Signed-off-by: Harvey Tuch <htuch@google.com>
Diffstat (limited to 'projects/envoy')
-rwxr-xr-x | projects/envoy/build.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/projects/envoy/build.sh b/projects/envoy/build.sh index 6ed0d422..0f4929c7 100755 --- a/projects/envoy/build.sh +++ b/projects/envoy/build.sh @@ -64,6 +64,15 @@ do fi done +# Override sanitizers, useful for non-Envoy code that we're trying to fix and +# that is acting as a build blockers. +declare -r BLACKLIST_PATH=blacklist.txt +cat <<EOF > "${BLACKLIST_PATH}" +# TODO(htuch): remove when we +# havehttps://github.com/protocolbuffers/protobuf/pull/5901. +fun:*FastInt64ToBufferLeft* +EOF + # Build driverless libraries. # TODO(htuch): Remove the CC/CXX/CFLAGS/CXXFLAGS passing, this is only there for # cmake_external limitation in understanding --cxxopt etc., it should not be @@ -73,6 +82,7 @@ done bazel build --verbose_failures --dynamic_mode=off --spawn_strategy=standalone \ --genrule_strategy=standalone --strip=never \ --copt=-fno-sanitize=vptr --linkopt=-fno-sanitize=vptr --linkopt=-lc++fs \ + --copt=-fsanitize-blacklist="${BLACKLIST_PATH}" \ --define tcmalloc=disabled --define signal_trace=disabled \ --define ENVOY_CONFIG_ASAN=1 --copt -D__SANITIZE_ADDRESS__ \ --define force_libcpp=enabled \ |