mirror of https://github.com/google/oss-fuzz.git
Enable UBSan without vptr for ffmpeg, disable vptr for libFuzzer. (#404)
This commit is contained in:
parent
3f564164c8
commit
499690c55f
|
@ -18,7 +18,8 @@
|
|||
echo -n "Compiling libFuzzer to $LIB_FUZZING_ENGINE ..."
|
||||
mkdir -p $WORK/libfuzzer
|
||||
pushd $WORK/libfuzzer > /dev/null
|
||||
$CXX $CXXFLAGS -std=c++11 -O2 $SANITIZER_FLAGS -c $SRC/libfuzzer/*.cpp -I$SRC/libfuzzer
|
||||
$CXX $CXXFLAGS -std=c++11 -O2 $SANITIZER_FLAGS -fno-sanitize=vptr \
|
||||
-c $SRC/libfuzzer/*.cpp -I$SRC/libfuzzer
|
||||
ar r $LIB_FUZZING_ENGINE $WORK/libfuzzer/*.o
|
||||
popd > /dev/null
|
||||
rm -rf $WORK/libfuzzer
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
# Disable UBSan vptr since several targets built with -fno-rtti.
|
||||
export CFLAGS="$CFLAGS -fno-sanitize=vptr"
|
||||
export CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr"
|
||||
|
||||
# Build dependencies.
|
||||
export FFMPEG_DEPS_PATH=$SRC/ffmpeg_deps
|
||||
mkdir -p $FFMPEG_DEPS_PATH
|
||||
|
|
|
@ -2,5 +2,3 @@ homepage: "https://www.ffmpeg.org/"
|
|||
primary_contact: "ffmpeg-security@ffmpeg.org"
|
||||
auto_ccs:
|
||||
- "michaelni@gmx.at"
|
||||
sanitizers:
|
||||
- address
|
||||
|
|
Loading…
Reference in New Issue