[GDAL] Enable unsigned-integer-overflow (#2747)

GDAL regression test suite now passes with this, and some local testing
of it for ossfuzz is encouraging, so let's enable that.
This commit is contained in:
Even Rouault 2019-08-22 17:44:31 +02:00 committed by jonathanmetzman
parent ebd914fb80
commit 79aac7941e
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,12 @@ make install
cd ../..
# build gdal
if [ "$SANITIZER" = "undefined" ]; then
CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
fi
cd gdal
export LDFLAGS=${CXXFLAGS}
PKG_CONFIG_PATH=$SRC/install/lib/pkgconfig ./configure --without-libtool --with-liblzma --with-expat --with-sqlite3 --with-xerces --with-webp --with-netcdf=$SRC/install --with-curl=$SRC/install/bin/curl-config --without-hdf5 --with-jpeg=internal --with-proj=$SRC/install --with-poppler