mirror of https://github.com/google/oss-fuzz.git
[infra][jvm] Fix UBSan C++ builds (#5961)
This commit is contained in:
parent
87c80b3a8b
commit
5426b732a1
|
@ -146,6 +146,13 @@ if [ "$FUZZING_LANGUAGE" = "jvm" ]; then
|
|||
# Coverage builds require no instrumentation.
|
||||
cp $(which jazzer_driver) $jazzer_driver_with_sanitizer
|
||||
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"
|
||||
fi
|
||||
|
||||
echo "---------------------------------------------------------------"
|
||||
|
|
Loading…
Reference in New Issue