Disable UBSan function on harfbuzz to avoid void* cast crashes. (#407)

* Disable UBSan function on harfbuzz to avoid crashes with void* casts.
This commit is contained in:
Abhishek Arya 2017-02-19 11:08:20 -08:00 committed by GitHub
parent f8633efd93
commit b4fb5be589
1 changed files with 5 additions and 3 deletions

View File

@ -15,9 +15,11 @@
#
################################################################################
# Disable UBSan vptr since target built with -fno-rtti.
export CFLAGS="$CFLAGS -fno-sanitize=vptr"
export CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr"
# Disable:
# 1. UBSan vptr since target built with -fno-rtti.
# 2. UBSan function to avoid crashes with void* cast crashes.
export CFLAGS="$CFLAGS -fno-sanitize=function,vptr"
export CXXFLAGS="$CXXFLAGS -fno-sanitize=function,vptr"
# Build the library.
./autogen.sh