Skip to content

Commit

Permalink
ossfuzz build.sh: update for latest poppler [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Apr 24, 2024
1 parent 40884e8 commit c8769da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fuzzers/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ curl -L https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz > v4
patch -p0 < $SRC/gdal/fuzzers/fix_stack_read_overflow_ncindexlookup.patch && \
cd ..

rm -rf freetype-2.13.2
curl -L https://download.savannah.gnu.org/releases/freetype/freetype-2.13.2.tar.xz > freetype-2.13.2.tar.xz && \
tar xJf freetype-2.13.2.tar.xz && \
rm freetype-2.13.2.tar.xz

rm -rf poppler
git clone --depth 1 https://anongit.freedesktop.org/git/poppler/poppler.git poppler

Expand Down Expand Up @@ -182,6 +187,14 @@ make -j$(nproc) -s
make install
cd ..

# build freetype
cd freetype-2.13.2
CFLAGS="$NON_FUZZING_CFLAGS" ./configure --prefix=$SRC/install
make clean -s
make -j$(nproc) -s
make install
cd ..

# build poppler

# We *need* to build with the sanitize flags for the address sanitizer,
Expand All @@ -201,8 +214,10 @@ fi
cd poppler
mkdir -p build
cd build
# -DENABLE_BOOST=OFF because Boost 1.74 is now required. Ubuntu 20.04 only provides 1.71
cmake .. \
-DCMAKE_INSTALL_PREFIX=$SRC/install \
-DCMAKE_PREFIX_PATH=$SRC/install \
-DCMAKE_BUILD_TYPE=debug \
-DCMAKE_C_FLAGS="$POPPLER_C_FLAGS" \
-DCMAKE_CXX_FLAGS="$POPPLER_CXX_FLAGS" \
Expand All @@ -222,6 +237,7 @@ cmake .. \
-DENABLE_GPGME=OFF \
-DENABLE_LCMS=OFF \
-DENABLE_UTILS=OFF \
-DENABLE_BOOST=OFF \
-DWITH_Cairo=OFF \
-DWITH_NSS3=OFF \
-DBUILD_CPP_TESTS=OFF \
Expand Down

0 comments on commit c8769da

Please sign in to comment.