diff options
author | Abhishek Arya <inferno@chromium.org> | 2017-02-19 11:08:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-19 11:08:20 -0800 |
commit | b4fb5be5897702860bfe502cfa94d1c2557b19b8 (patch) | |
tree | 48d632c2c40cfaed0b69917f0e6c22f6927a7604 /projects/harfbuzz/build.sh | |
parent | f8633efd93509e740a2f3d6e7e6f36037f2b8271 (diff) |
Disable UBSan function on harfbuzz to avoid void* cast crashes. (#407)
* Disable UBSan function on harfbuzz to avoid crashes with void* casts.
Diffstat (limited to 'projects/harfbuzz/build.sh')
-rwxr-xr-x | projects/harfbuzz/build.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/projects/harfbuzz/build.sh b/projects/harfbuzz/build.sh index f55e1697..abac59bd 100755 --- a/projects/harfbuzz/build.sh +++ b/projects/harfbuzz/build.sh @@ -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 |