From ede1fb13ae3646462e9d330de2733876bb220055 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 11 Aug 2021 19:35:29 +0200 Subject: [PATCH] [infra] Enable Jazzer support for UBSan C++ features (#6202) Jazzer now links in the UBSan C++ runtime and thus support the vptr and function sanitizer settings. --- infra/base-images/base-builder/compile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/infra/base-images/base-builder/compile b/infra/base-images/base-builder/compile index af4118523..696359871 100755 --- a/infra/base-images/base-builder/compile +++ b/infra/base-images/base-builder/compile @@ -148,11 +148,8 @@ if [ "$FUZZING_LANGUAGE" = "jvm" ]; then fi # Disable leak checking since the JVM triggers too many false positives. - # function and vptr are also disabled for now as Bazel uses clang instead of - # clang++ when linking the driver, which does not support these C++ UBSan - # features. - export CFLAGS="$CFLAGS -fno-sanitize=function,leak,vptr," - export CXXFLAGS="$CXXFLAGS -fno-sanitize=function,leak,vptr" + export CFLAGS="$CFLAGS -fno-sanitize=leak" + export CXXFLAGS="$CXXFLAGS -fno-sanitize=leak" fi echo "---------------------------------------------------------------"