[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.
This commit is contained in:
Fabian Meumertzheim 2021-08-11 19:35:29 +02:00 committed by GitHub
parent 75914341cb
commit ede1fb13ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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 "---------------------------------------------------------------"