diff options
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/qpdf_fuzzer.cc | 7 | ||||
-rw-r--r-- | fuzz/standalone_fuzz_target_runner.cc | 3 | ||||
-rw-r--r-- | fuzz/tiffpredictor_fuzzer.cc | 3 |
3 files changed, 5 insertions, 8 deletions
diff --git a/fuzz/qpdf_fuzzer.cc b/fuzz/qpdf_fuzzer.cc index 8d4534bd..6f941276 100644 --- a/fuzz/qpdf_fuzzer.cc +++ b/fuzz/qpdf_fuzzer.cc @@ -53,8 +53,8 @@ FuzzHelper::FuzzHelper(unsigned char const* data, size_t size) : std::shared_ptr<QPDF> FuzzHelper::getQpdf() { - auto is = std::shared_ptr<InputSource>( - new BufferInputSource("fuzz input", &this->input_buffer)); + auto is = + std::shared_ptr<InputSource>(new BufferInputSource("fuzz input", &this->input_buffer)); auto qpdf = QPDF::create(); qpdf->processInputSource(is); return qpdf; @@ -99,8 +99,7 @@ FuzzHelper::testWrite() w = getWriter(q); w->setStaticID(true); w->setLinearization(true); - w->setR6EncryptionParameters( - "u", "o", true, true, true, true, true, true, qpdf_r3p_full, true); + w->setR6EncryptionParameters("u", "o", true, true, true, true, true, true, qpdf_r3p_full, true); doWrite(w); q = getQpdf(); diff --git a/fuzz/standalone_fuzz_target_runner.cc b/fuzz/standalone_fuzz_target_runner.cc index 143f4e6f..9d57481d 100644 --- a/fuzz/standalone_fuzz_target_runner.cc +++ b/fuzz/standalone_fuzz_target_runner.cc @@ -11,8 +11,7 @@ main(int argc, char** argv) std::shared_ptr<char> file_buf; size_t size = 0; QUtil::read_file_into_memory(argv[i], file_buf, size); - LLVMFuzzerTestOneInput( - reinterpret_cast<unsigned char*>(file_buf.get()), size); + LLVMFuzzerTestOneInput(reinterpret_cast<unsigned char*>(file_buf.get()), size); std::cout << argv[i] << " successful" << std::endl; } return 0; diff --git a/fuzz/tiffpredictor_fuzzer.cc b/fuzz/tiffpredictor_fuzzer.cc index 61c24e57..fd0e4c6e 100644 --- a/fuzz/tiffpredictor_fuzzer.cc +++ b/fuzz/tiffpredictor_fuzzer.cc @@ -26,8 +26,7 @@ void FuzzHelper::doChecks() { Pl_Discard discard; - Pl_TIFFPredictor p( - "decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8); + Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8); p.write(const_cast<unsigned char*>(data), size); p.finish(); } |