diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-18 20:53:54 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-18 20:53:54 +0200 |
commit | bb8a4d71da8f2b748a78ccc4416df6bffb393d80 (patch) | |
tree | 157a08bdf31e159bd83d137cc157fb204cc34117 /instrumentation/afl-llvm-dict2file.so.cc | |
parent | fd43daee6a2146e95059b7ea670c6bf24b3704ed (diff) | |
download | afl++-bb8a4d71da8f2b748a78ccc4416df6bffb393d80.tar.gz |
format and remove warning
Diffstat (limited to 'instrumentation/afl-llvm-dict2file.so.cc')
-rw-r--r-- | instrumentation/afl-llvm-dict2file.so.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/instrumentation/afl-llvm-dict2file.so.cc b/instrumentation/afl-llvm-dict2file.so.cc index c4ad1783..0a3e74b9 100644 --- a/instrumentation/afl-llvm-dict2file.so.cc +++ b/instrumentation/afl-llvm-dict2file.so.cc @@ -65,8 +65,10 @@ using namespace llvm; namespace { class AFLdict2filePass : public ModulePass { + std::ofstream of; - void dict2file(u8 *, u32); + void dict2file(u8 *, u32); + public: static char ID; @@ -147,8 +149,7 @@ bool AFLdict2filePass::runOnModule(Module &M) { FATAL("AFL_LLVM_DICT2FILE is not set to an absolute path: %s", ptr); of.open(ptr, std::ofstream::out | std::ofstream::app); - if (!of.is_open()) - PFATAL("Could not open/create %s.", ptr); + if (!of.is_open()) PFATAL("Could not open/create %s.", ptr); /* Instrument all the things! */ |