aboutsummaryrefslogtreecommitdiff
path: root/projects/gdal
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-08-19 23:18:22 +0200
committerjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-08-19 14:18:22 -0700
commitc88eb977f89c96722e172f5c12ef8f5a5f962827 (patch)
treec953e16dc58763e2afa47d87ced2d55527c39671 /projects/gdal
parent984b792dd9dcabf968e6c0510fddeef2c8557431 (diff)
downloadoss-fuzz-c88eb977f89c96722e172f5c12ef8f5a5f962827.tar.gz
GDAL: ignore Poppler UBSAN issues (#2716)
Diffstat (limited to 'projects/gdal')
-rwxr-xr-xprojects/gdal/build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/projects/gdal/build.sh b/projects/gdal/build.sh
index 2c085fd21..03a439678 100755
--- a/projects/gdal/build.sh
+++ b/projects/gdal/build.sh
@@ -36,9 +36,20 @@ fi
cd poppler
mkdir -p build
cd build
+POPPLER_CXXFLAGS="$CXXFLAGS"
+# we do not really want to deal with Poppler undefined behaviour bugs, such
+# as integer overflows
+if [ "$SANITIZER" = "undefined" ]; then
+ if [ "$ARCHITECTURE" = "i386" ]; then
+ POPPLER_CXXFLAGS="-m32 -g -O1"
+ else
+ POPPLER_CXXFLAGS="-g -O1"
+ fi
+fi
cmake .. \
-DCMAKE_INSTALL_PREFIX=$SRC/install \
-DCMAKE_BUILD_TYPE=debug \
+ -DCMAKE_CXX_FLAGS="$POPPLER_CXXFLAGS" \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DBUILD_SHARED_LIBS=OFF \
-DFONT_CONFIGURATION=generic \