Unverified Commit 4f38db1d authored by Max Dymond's avatar Max Dymond Committed by Daniel Stenberg
Browse files

fuzzer: move to using external curl-fuzzer

Use the external curl-fuzzer repository for fuzzing.

Closes #1923
parent 120d963a
Loading
Loading
Loading
Loading
+8 −11
Changes for .travis.yml: 8 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -156,18 +156,15 @@ script:
        fi
    - |
        if [ "$T" = "fuzzer" ]; then
          export CC=clang
          export CXX=clang++
          export CFLAGS="-fsanitize=address"
          # Download the fuzzer to a temporary folder
          ./tests/fuzz/download_fuzzer.sh /tmp/curl_fuzzer

          # Specifically use libstdc++ for travis as libc++ is not installed.
          # This is ok because we're not compiling against libFuzzer.
          export CXXFLAGS="-fsanitize=address -stdlib=libstdc++"
          ./configure --disable-shared --enable-debug --enable-maintainer-mode
          make
          cd tests/fuzz
          make clean
          make check
          export CURLSRC=$PWD

          # Run the mainline fuzzer test
          pushd /tmp/curl_fuzzer
          ./mainline.sh ${CURLSRC}
          popd
        fi

# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
−3
Changes for Makefile.am: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -210,9 +210,6 @@ test-am:

endif

fuzzer:
	@(cd tests/fuzz; $(MAKE) all)

examples:
	@(cd docs/examples; $(MAKE) check)

−1
Changes for configure.ac: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3974,7 +3974,6 @@ AC_CONFIG_FILES([Makefile \
           tests/server/Makefile \
           tests/libtest/Makefile \
           tests/unit/Makefile \
           tests/fuzz/Makefile \
           packages/Makefile \
           packages/Win32/Makefile \
           packages/Win32/cygwin/Makefile \
+1 −1
Changes for tests/Makefile.am: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ DIST_UNIT = unit
endif

SUBDIRS = certs data server libtest $(BUILD_UNIT)
DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT) fuzz
DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT)

PERLFLAGS = -I$(srcdir)

−56

File deleted.

Loading