diff --git a/projects/curl/build.sh b/projects/curl/build.sh index b6f3faa11..ee5a4c9a8 100755 --- a/projects/curl/build.sh +++ b/projects/curl/build.sh @@ -18,11 +18,14 @@ ./buildconf ./configure --disable-shared --enable-debug --enable-maintainer-mode --disable-symbol-hiding --disable-threaded-resolver --enable-ipv6 --with-random=/dev/null make -j$(nproc) + +# Build the fuzzer. $CXX $CXXFLAGS $SRC/curl_fuzzer.cc -Iinclude lib/.libs/libcurl.a \ -o $OUT/curl_fuzzer \ -Wl,-Bstatic -lssl -lcrypto -lz -lFuzzingEngine -Wl,-Bdynamic -# /usr/lib/x86_64-linux-gnu/libssl.a \ -# /usr/lib/x86_64-linux-gnu/libcrypto.a \ - +# Copy dictionary and options file to $OUT. cp $SRC/*.dict $SRC/*.options $OUT/ + +# Archive and copy to $OUT seed corpus if the build succeeded. +zip -j $OUT/curl_fuzzer_seed_corpus.zip $SRC/curl/tests/data/test* diff --git a/projects/curl/curl_fuzzer.options b/projects/curl/curl_fuzzer.options index e8e815189..4c4530429 100644 --- a/projects/curl/curl_fuzzer.options +++ b/projects/curl/curl_fuzzer.options @@ -1,3 +1,3 @@ [libfuzzer] -max_len = 1000 +max_len = 10000 dict = http.dict