mirror of https://github.com/google/oss-fuzz.git
[example] Fix a typo in "example" project from #603.
This commit is contained in:
parent
a509666343
commit
8fa985b10d
|
@ -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 ';'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -11,4 +11,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
DoStuff(str); // Disregard the output.
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue