diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-14 18:34:23 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-15 23:24:24 +0200 |
commit | f561a5df325945c896bdec266d2e457a002fef0e (patch) | |
tree | cdebec58663add4ea9f9fd349835e1f6212e2c3c /fuzz/standalone_fuzz_target_runner.cc | |
parent | cf469d789024cdda41684f1ea48b41829b98c242 (diff) | |
download | qpdf-f561a5df325945c896bdec266d2e457a002fef0e.tar.zst |
Implement fuzzer with good coverage
Diffstat (limited to 'fuzz/standalone_fuzz_target_runner.cc')
-rw-r--r-- | fuzz/standalone_fuzz_target_runner.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fuzz/standalone_fuzz_target_runner.cc b/fuzz/standalone_fuzz_target_runner.cc index 7038f188..9881d0fb 100644 --- a/fuzz/standalone_fuzz_target_runner.cc +++ b/fuzz/standalone_fuzz_target_runner.cc @@ -20,8 +20,7 @@ int main(int argc, char **argv) in.seekg(0, in.end); size_t length = in.tellg(); in.seekg (0, in.beg); - std::cout << "Reading " << length << " bytes from " << argv[i] - << std::endl; + std::cout << "checking " << argv[i] << std::endl; // Allocate exactly length bytes so that we reliably catch // buffer overflows. std::vector<char> bytes(length); @@ -30,7 +29,7 @@ int main(int argc, char **argv) LLVMFuzzerTestOneInput( reinterpret_cast<unsigned char const*>(bytes.data()), bytes.size()); - std::cout << "Execution successful" << std::endl; + std::cout << argv[i] << " successful" << std::endl; } return 0; } |