xmlsec: Install and link xmlsec against it (#3577)

This commit is contained in:
Bhargava Shastry 2020-04-03 14:30:56 +02:00 committed by GitHub
parent 3b695b10de
commit 6101f85ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config \
libssl-dev libxslt-dev wget
libssl-dev libxslt-dev wget liblzma-dev
RUN git clone --depth 1 https://github.com/lsh123/xmlsec
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git

View File

@ -45,7 +45,7 @@ for file in $SRC/xmlsec/tests/oss-fuzz/*_target.c; do
$CXX $CXXFLAGS $OUT/${b}_target.o ./src/.libs/libxmlsec1.a \
./src/openssl/.libs/libxmlsec1-openssl.a $LIB_FUZZING_ENGINE \
"$XMLSEC_DEPS_PATH"/lib/libxslt.a "$XMLSEC_DEPS_PATH"/lib/libxml2.a \
-lz -o $OUT/${b}_fuzzer
-lz -llzma -o $OUT/${b}_fuzzer
done
cp $SRC/xmlsec/tests/oss-fuzz/config/*.options $OUT/
wget -O $OUT/xml.dict https://raw.githubusercontent.com/mirrorer/afl/master/dictionaries/xml.dict