Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/dovecot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool wget gettext automake libxml2-dev m4 pkg-config bison flex python3.8-venv libssl-dev zlib1g-dev
RUN apt-get update && apt-get install -y make autoconf automake libtool wget gettext automake libxml2-dev m4 pkg-config bison flex python3.8-venv libssl-dev zlib1g-dev libtool-bin
RUN git clone --depth 1 --single-branch --branch main https://github.com/dovecot/core dovecot
RUN git clone --depth 1 --single-branch --branch main https://github.com/dovecot/pigeonhole pigeonhole
COPY build.sh $SRC/
Expand Down
11 changes: 7 additions & 4 deletions projects/dovecot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
#
################################################################################
cd dovecot
# Patch ldflags
find . -name "Makefile.am" -exec sed -i -e 's,(FUZZER_LDFLAGS),(FUZZER_LDFLAGS) -static-libtool-libs,' {} \;
./autogen.sh
./configure PANDOC=false --with-fuzzer=clang
./configure PANDOC=false --with-fuzzer=clang --prefix=$OUT
make -j$(nproc)
# Copy over the fuzzers
find . -name "fuzz-*" -executable -exec cp {} $OUT/ \;
find . -name "fuzz-*" -executable -exec libtool install install -m0755 {} $OUT/ \;
cd ../pigeonhole
find . -name "Makefile.am" -exec sed -i -e 's,(FUZZER_LDFLAGS),(FUZZER_LDFLAGS) -static-libtool-libs,' {} \;
./autogen.sh
./configure --with-dovecot=../dovecot --with-fuzzer=clang
./configure --with-dovecot=../dovecot --with-fuzzer=clang --prefix=$OUT
make -j$(nproc)
# Copy over the fuzzers
find . -name "fuzz-*" -executable -exec cp {} $OUT/ \;
find . -name "fuzz-*" -executable -exec libtool install install -m0755 {} $OUT/ \;
Loading