mirror of https://github.com/google/oss-fuzz.git
parent
f014b858d9
commit
3c67623eb5
|
@ -19,12 +19,12 @@ RUN apt-get update && \
|
|||
apt-get install -y --no-install-recommends \
|
||||
make autoconf automake libtool pkg-config \
|
||||
zlib1g-dev zlib1g-dev:i386 liblzma-dev liblzma-dev:i386 \
|
||||
wget intltool sasl2-bin python3-pip
|
||||
wget intltool sasl2-bin python3-pip libpcre2-dev
|
||||
RUN pip3 install -U meson ninja
|
||||
|
||||
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/glib
|
||||
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git
|
||||
RUN wget https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.5/pidgin-2.14.5.tar.bz2
|
||||
RUN wget https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.10/pidgin-2.14.10.tar.bz2
|
||||
RUN wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
|
||||
|
||||
RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus
|
||||
|
|
|
@ -63,8 +63,8 @@ cp ${GLIB_BUILD}/glib/libglib-2.0.a ${DEPS}/
|
|||
|
||||
# Build Pidgin
|
||||
cd $SRC
|
||||
tar -xf pidgin-2.14.5.tar.bz2
|
||||
mv pidgin-2.14.5 pidgin
|
||||
tar -xf pidgin-2.14.10.tar.bz2
|
||||
mv pidgin-2.14.10 pidgin
|
||||
cd pidgin
|
||||
./configure --disable-consoleui \
|
||||
--disable-shared \
|
||||
|
@ -106,8 +106,8 @@ for fuzzer in "${FUZZERS[@]}"; do
|
|||
-I${GLIB_BUILD} \
|
||||
-I${GLIB_BUILD}/glib \
|
||||
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
|
||||
-I/usr/local/include/libxml2 \
|
||||
-I/src/pidgin/libpurple/protocols/jabber \
|
||||
-I/usr/local/include/libxml2 \
|
||||
-c $fuzzer.c \
|
||||
-o $fuzzer.o
|
||||
|
||||
|
@ -115,12 +115,12 @@ for fuzzer in "${FUZZERS[@]}"; do
|
|||
-o $OUT/$fuzzer \
|
||||
/src/pidgin/libpurple/protocols/jabber/.libs/libjabber.a \
|
||||
./.libs/libpurple.a \
|
||||
${DEPS}/libxml2.a \
|
||||
${DEPS}/libgobject-2.0.a \
|
||||
${DEPS}/libgmodule-2.0.a \
|
||||
${DEPS}/libglib-2.0.a \
|
||||
${DEPS}/libxml2.a \
|
||||
${DEPS}/libffi.a \
|
||||
-lresolv -lz -llzma
|
||||
-lresolv -lz -llzma -l:libpcre2-8.a
|
||||
done
|
||||
|
||||
zip $OUT/pidgin_xml_fuzzer_seed_corpus.zip $SRC/go-fuzz-corpus/xml/corpus/*
|
||||
|
|
Loading…
Reference in New Issue