mirror of https://github.com/google/oss-fuzz.git
[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:
parent
ebd914fb80
commit
79aac7941e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue