[example] Fix a typo in "example" project from #603.

This commit is contained in:
Max Moroz 2017-05-14 12:56:09 +02:00
parent a509666343
commit 8fa985b10d
5 changed files with 3 additions and 6 deletions

View File

@ -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 ';'

View File

@ -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

View File

@ -11,4 +11,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
DoStuff(str); // Disregard the output.
return 0;
}

View File

@ -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<char> bytes(length);
in.read(bytes.data(), bytes.size());
assert(in);

View File

@ -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