mirror of https://github.com/google/oss-fuzz.git
Make use of liblzo2 in libarchive (#8685)
Co-authored-by: Julien Voisin <jvoisin@google.com>
This commit is contained in:
parent
34975fed83
commit
e74acd6a70
|
@ -18,8 +18,8 @@ FROM gcr.io/oss-fuzz-base/base-builder
|
|||
|
||||
RUN apt-get update && apt-get install -y make autoconf libtool pkg-config \
|
||||
libbz2-dev liblzo2-dev liblzma-dev liblz4-dev libz-dev \
|
||||
libssl-dev libacl1-dev libattr1-dev lrzip \
|
||||
liblz4-tool lzop zstd lcab genisoimage jlha-utils rar default-jdk
|
||||
libssl-dev libacl1-dev libattr1-dev lrzip liblzo2-dev \
|
||||
liblz4-tool lzop zstd lcab genisoimage jlha-utils rar default-jdk
|
||||
RUN curl -LO http://mirrors.kernel.org/ubuntu/pool/main/a/automake-1.16/automake_1.16.5-1.3_all.deb && \
|
||||
apt install ./automake_1.16.5-1.3_all.deb
|
||||
RUN git clone --depth 1 https://github.com/libarchive/libarchive.git
|
||||
|
|
|
@ -55,8 +55,9 @@ cp $SRC/libarchive/contrib/oss-fuzz/corpus.zip\
|
|||
git clone --depth=1 https://github.com/corkami/pocs
|
||||
find $SRC/pocs/ -type f -print0 | xargs -0 -I % zip -jr $OUT/libarchive_fuzzer_seed_corpus.zip %
|
||||
|
||||
|
||||
# build fuzzer(s)
|
||||
$CXX $CXXFLAGS -I../libarchive \
|
||||
$SRC/libarchive_fuzzer.cc -o $OUT/libarchive_fuzzer \
|
||||
$LIB_FUZZING_ENGINE ./libarchive/libarchive.a \
|
||||
-lcrypto -lacl -llzma -llz4 -lbz2 -lz ${DEPS}/libxml2.a
|
||||
-Wl,-Bstatic -llzo2 -Wl,-Bdynamic -lcrypto -lacl -llzma -llz4 -lbz2 -lz ${DEPS}/libxml2.a
|
||||
|
|
Loading…
Reference in New Issue