mirror of
https://github.com/mirror/wget.git
synced 2024-12-30 23:10:13 +08:00
a4402120ad
* Makefile.am: Add fuzz/ to SUBDIRS * cfg.mk: Fix 'make syntax-check' * configure.ac: Add --enable-fuzzing * fuzz/Makefile.am: New file * fuzz/README.md: New file * fuzz/fuzzer.h: New file * fuzz/get_all_corpora: New file * fuzz/get_ossfuzz_corpora: New file * fuzz/glob_crash.c: New file * fuzz/main.c: New file * fuzz/run-afl.sh: New file * fuzz/run-clang.sh: New file * fuzz/view-coverage.sh: New file * fuzz/wget_options_fuzzer.c: New file * fuzz/wget_options_fuzzer.dict: New file * src/init.c (cleanup): Free more resources * src/main.c (init_switches): Initialize only once, (print_usage): Don't print if TESTING is defined * src/utils.h: Include wget.h
12 lines
321 B
Bash
Executable File
12 lines
321 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
|
|
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
|
echo "Please built regarding README.md and try again."
|
|
exit 1
|
|
fi
|
|
|
|
for fuzzer in *_fuzzer.c; do
|
|
./get_ossfuzz_corpora $(basename $fuzzer .c)
|
|
done
|