aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/hex_fuzzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/hex_fuzzer.cc')
-rw-r--r--fuzz/hex_fuzzer.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/fuzz/hex_fuzzer.cc b/fuzz/hex_fuzzer.cc
index b1ad2199..0ce7b2e0 100644
--- a/fuzz/hex_fuzzer.cc
+++ b/fuzz/hex_fuzzer.cc
@@ -1,5 +1,5 @@
-#include <qpdf/Pl_Discard.hh>
#include <qpdf/Pl_ASCIIHexDecoder.hh>
+#include <qpdf/Pl_Discard.hh>
#include <iostream>
#include <stdexcept>
@@ -34,17 +34,15 @@ FuzzHelper::doChecks()
void
FuzzHelper::run()
{
- try
- {
+ try {
doChecks();
- }
- catch (std::runtime_error const& e)
- {
+ } catch (std::runtime_error const& e) {
std::cerr << "runtime_error: " << e.what() << std::endl;
}
}
-extern "C" int LLVMFuzzerTestOneInput(unsigned char const* data, size_t size)
+extern "C" int
+LLVMFuzzerTestOneInput(unsigned char const* data, size_t size)
{
FuzzHelper f(data, size);
f.run();