diff --git a/projects/example/build.sh b/projects/example/build.sh index f109d5df3..0917b27a8 100755 --- a/projects/example/build.sh +++ b/projects/example/build.sh @@ -16,11 +16,10 @@ ################################################################################ cd projects/example/my-api-repo -make clean # Not strictly necessary, since we are building in fresh dir. +make clean # Not strictly necessary, since we are building in a fresh dir. make -j$(nproc) all # Build the fuzz targets. make -j$(nproc) check # Sanity check, not strictly required, but nice to have. # Copy the fuzzer executables and zip-ed corpora to $OUT find . -name '*_fuzzer' -exec cp -v '{}' $OUT ';' find . -name '*_fuzzer_seed_corpus.zip' -exec cp -v '{}' $OUT ';' - diff --git a/projects/example/my-api-repo/Makefile b/projects/example/my-api-repo/Makefile index 82ea6d8d1..144ff27a6 100644 --- a/projects/example/my-api-repo/Makefile +++ b/projects/example/my-api-repo/Makefile @@ -49,4 +49,3 @@ my_api.a: my_api.cpp my_api.h # The standalone fuzz target runner. standalone_fuzz_taget_runner.o: standalone_fuzz_taget_runner.cpp - diff --git a/projects/example/my-api-repo/do_stuff_fuzzer.cpp b/projects/example/my-api-repo/do_stuff_fuzzer.cpp index 7adaac356..087888b46 100644 --- a/projects/example/my-api-repo/do_stuff_fuzzer.cpp +++ b/projects/example/my-api-repo/do_stuff_fuzzer.cpp @@ -11,4 +11,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { DoStuff(str); // Disregard the output. return 0; } - diff --git a/projects/example/my-api-repo/standalone_fuzz_taget_runner.cpp b/projects/example/my-api-repo/standalone_fuzz_taget_runner.cpp index b45c882b3..aecd1c987 100644 --- a/projects/example/my-api-repo/standalone_fuzz_taget_runner.cpp +++ b/projects/example/my-api-repo/standalone_fuzz_taget_runner.cpp @@ -24,7 +24,7 @@ int main(int argc, char **argv) { size_t length = in.tellg(); in.seekg (0, in.beg); std::cout << "Reading " << length << " bytes from " << argv[i] << std::endl; - // Allcate exactly length bytes so that we reliably catch buffer overflows. + // Allocate exactly length bytes so that we reliably catch buffer overflows. std::vector bytes(length); in.read(bytes.data(), bytes.size()); assert(in); diff --git a/projects/example/project.yaml b/projects/example/project.yaml index de763b4fe..723801cfd 100644 --- a/projects/example/project.yaml +++ b/projects/example/project.yaml @@ -5,6 +5,6 @@ primary_contact: "primary-my-api-maintainer@example.com" auto_ccs: - "secondary-my-api-maintainer@example.com" - "tertiary-my-api-maintainer@example.com" - + # We don't run this example project for real. (Don't use this flag for your project) disabled: true