Enable UBSan without vptr for ffmpeg, disable vptr for libFuzzer. (#404)

This commit is contained in:
Abhishek Arya 2017-02-17 23:13:50 -08:00 committed by GitHub
parent 3f564164c8
commit 499690c55f
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

@ -2,5 +2,3 @@ homepage: "https://www.ffmpeg.org/"
primary_contact: "ffmpeg-security@ffmpeg.org"
auto_ccs:
- "michaelni@gmx.at"
sanitizers:
- address