From 8fce83339b6a862001c4fbad6bcd72dc3efee136 Mon Sep 17 00:00:00 2001 From: "Urabe, Shyouhei" Date: Thu, 23 May 2019 16:55:20 +0900 Subject: disable _FORTIFY_SOURCE Sanitizers and fortifications do not interface, and there is currently no plan for them to work together. See also https://github.com/google/sanitizers/issues/247 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f5d6d41418..e7d010cbb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -198,7 +198,7 @@ env: env: - GEMS_FOR_TEST= - ASAN_OPTIONS=detect_leaks=0 - - cflags='-march=native -fsanitize=address -fno-omit-frame-pointer -fPIC' + - cflags='-U_FORTIFY_SOURCE -march=native -fsanitize=address -fno-omit-frame-pointer -fPIC' - debugflags=-ggdb3 - optflags=-O1 - LD=clang-8 @@ -213,7 +213,7 @@ env: <<: *clang-8 env: - GEMS_FOR_TEST= - - cflags='-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -fPIC' + - cflags='-U_FORTIFY_SOURCE -fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -fPIC' - optflags=-O1 - LD=clang-8 - LDFLAGS='-fsanitize=memory -fPIC' @@ -227,7 +227,7 @@ env: <<: *clang-8 env: - GEMS_FOR_TEST= - - cflags='-fsanitize=undefined,integer,nullability -fno-sanitize=implicit-integer-sign-change,unsigned-integer-overflow' + - cflags='-U_FORTIFY_SOURCE -fsanitize=undefined,integer,nullability -fno-sanitize=implicit-integer-sign-change,unsigned-integer-overflow' - cppflags=-DUNALIGNED_WORD_ACCESS=0 - debugflags=-ggdb3 - optflags='-O1 -march=native' -- cgit v1.2.3