From b4fb5be5897702860bfe502cfa94d1c2557b19b8 Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Sun, 19 Feb 2017 11:08:20 -0800 Subject: [PATCH] Disable UBSan function on harfbuzz to avoid void* cast crashes. (#407) * Disable UBSan function on harfbuzz to avoid crashes with void* casts. --- projects/harfbuzz/build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/harfbuzz/build.sh b/projects/harfbuzz/build.sh index f55e1697e..abac59bd9 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