diff options
author | Max Dymond <cmeister2@gmail.com> | 2017-09-25 15:51:07 +0100 |
---|---|---|
committer | Max Moroz <dor3s1@gmail.com> | 2017-09-25 07:51:07 -0700 |
commit | bf16050624e88ae1c2428a9a1cdfc13adf306b43 (patch) | |
tree | 86d906677a8db01f86be7c04d924d2118bb81541 /projects/curl | |
parent | ba5233236d081c6c0ee83e9a930f2f9746b9fac8 (diff) | |
download | oss-fuzz-bf16050624e88ae1c2428a9a1cdfc13adf306b43.tar.gz |
[curl] Move to using separated repository (#855)
The curl fuzzer has been moved into its own repository,
http://github.com/curl/curl-fuzzer. For oss-fuzz this means it needs to
check out two codebases and compile them.
Diffstat (limited to 'projects/curl')
-rw-r--r-- | projects/curl/Dockerfile | 5 | ||||
-rwxr-xr-x | projects/curl/build.sh | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/projects/curl/Dockerfile b/projects/curl/Dockerfile index 1afe523bc..61ece2f32 100644 --- a/projects/curl/Dockerfile +++ b/projects/curl/Dockerfile @@ -18,7 +18,8 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER dvyukov@google.com RUN apt-get update && apt-get install -y make autoconf automake libtool libssl-dev zlib1g-dev -RUN git clone --depth 1 https://github.com/curl/curl.git -WORKDIR curl +RUN git clone --depth 1 https://github.com/curl/curl.git /tmp/curl +RUN git clone --depth 1 https://github.com/curl/curl-fuzzer.git /tmp/curl_fuzzer +WORKDIR /tmp/curl_fuzzer COPY build.sh *.options *.dict $SRC/ diff --git a/projects/curl/build.sh b/projects/curl/build.sh index 1b761b29e..d2d029f95 100755 --- a/projects/curl/build.sh +++ b/projects/curl/build.sh @@ -21,13 +21,22 @@ echo "LIB_FUZZING_ENGINE: $LIB_FUZZING_ENGINE" echo "CFLAGS: $CFLAGS" echo "CXXFLAGS: $CXXFLAGS" +# Make an install directory +export INSTALLDIR=/tmp/curl_install + +# Compile curl +pushd /tmp/curl ./buildconf -./configure --disable-shared --enable-debug --enable-maintainer-mode --disable-symbol-hiding --disable-threaded-resolver --enable-ipv6 --with-random=/dev/null --without-ssl +./configure --prefix=${INSTALLDIR} --disable-shared --enable-debug --enable-maintainer-mode --disable-symbol-hiding --disable-threaded-resolver --enable-ipv6 --with-random=/dev/null --without-ssl make -j$(nproc) +make install +popd # Build the fuzzer. -cd tests/fuzz -make all +./buildconf +./configure +make +make check make zip cp -v curl_fuzzer curl_fuzzer_seed_corpus.zip $OUT/ |