aboutsummaryrefslogtreecommitdiff
path: root/projects/firestore
diff options
context:
space:
mode:
authorMina Farid <minafarid@google.com>2018-08-10 10:45:18 -0400
committerMax Moroz <dor3s1@gmail.com>2018-08-10 07:45:18 -0700
commit29a92d74413c5f7025ee80bada3dae5c21f1bdcc (patch)
tree2e386515f09c2d6d9bcb6590906f4ab333518063 /projects/firestore
parentdc8b440fe97adeb849231acbf8aa246920140977 (diff)
downloadoss-fuzz-29a92d74413c5f7025ee80bada3dae5c21f1bdcc.tar.gz
[firestore] fix building with ubsan flags (#1704)
Diffstat (limited to 'projects/firestore')
-rwxr-xr-xprojects/firestore/build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/firestore/build.sh b/projects/firestore/build.sh
index e422398ac..ec9a429a0 100755
--- a/projects/firestore/build.sh
+++ b/projects/firestore/build.sh
@@ -27,6 +27,11 @@ wget https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz
tar -xzf cmake-3.12.0-Linux-x86_64.tar.gz
rm cmake-3.12.0-Linux-x86_64.tar.gz
+# Disable UBSan vptr since Firestore depends on other libraries that are built
+# with -fno-rtti.
+export CFLAGS="$CFLAGS -fno-sanitize=vptr"
+export CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr"
+
# Build the project using cmake with FUZZING option enabled to link to OSS Fuzz
# fuzzing library defined in ${LIB_FUZZING_ENGINE}.
cd $SRC/firebase-ios-sdk