diff --git a/projects/skia/build.sh b/projects/skia/build.sh index 43bb47d14..2dd57dbfe 100644 --- a/projects/skia/build.sh +++ b/projects/skia/build.sh @@ -15,6 +15,10 @@ # ################################################################################ +# Disable UBSan vptr since target built with -fno-rtti. +export CFLAGS="$CFLAGS -fno-sanitize=vptr" +export CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr" + # This splits a space separated list into a quoted, comma separated list for gn. export CXXFLAGS_ARR=`echo $CXXFLAGS | sed -e "s/\s/\",\"/g"` $SRC/depot_tools/gn gen out/Fuzz\ @@ -31,4 +35,5 @@ $SRC/depot_tools/gn gen out/Fuzz\ $SRC/depot_tools/ninja -C out/Fuzz fuzz_region_deserialize cp out/Fuzz/fuzz_region_deserialize $OUT/region_deserialize -cp ./region_deserialize.options $OUT/region_deserialize.options \ No newline at end of file +cp ./region_deserialize.options $OUT/region_deserialize.options + diff --git a/projects/skia/project.yaml b/projects/skia/project.yaml index ed2c60111..b52f8b489 100644 --- a/projects/skia/project.yaml +++ b/projects/skia/project.yaml @@ -2,3 +2,7 @@ homepage: "https://github.com/google/skia" primary_contact: "kjlubick@chromium.org" auto_ccs: - "hcm@chromium.org" +sanitizers: + - address + - undefined + - memory