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 ..."
|
echo -n "Compiling libFuzzer to $LIB_FUZZING_ENGINE ..."
|
||||||
mkdir -p $WORK/libfuzzer
|
mkdir -p $WORK/libfuzzer
|
||||||
pushd $WORK/libfuzzer > /dev/null
|
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
|
ar r $LIB_FUZZING_ENGINE $WORK/libfuzzer/*.o
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
rm -rf $WORK/libfuzzer
|
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.
|
# Build dependencies.
|
||||||
export FFMPEG_DEPS_PATH=$SRC/ffmpeg_deps
|
export FFMPEG_DEPS_PATH=$SRC/ffmpeg_deps
|
||||||
mkdir -p $FFMPEG_DEPS_PATH
|
mkdir -p $FFMPEG_DEPS_PATH
|
||||||
|
|
|
@ -2,5 +2,3 @@ homepage: "https://www.ffmpeg.org/"
|
||||||
primary_contact: "ffmpeg-security@ffmpeg.org"
|
primary_contact: "ffmpeg-security@ffmpeg.org"
|
||||||
auto_ccs:
|
auto_ccs:
|
||||||
- "michaelni@gmx.at"
|
- "michaelni@gmx.at"
|
||||||
sanitizers:
|
|
||||||
- address
|
|
||||||
|
|
Loading…
Reference in New Issue