diff options
author | van Hauser <vh@thc.org> | 2020-02-16 16:45:30 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-02-16 16:45:30 +0100 |
commit | 4cccdb89c0112931e451bc0719880813d15d14dc (patch) | |
tree | 5482ee0333c4f83c72cc0187865f2a691ab7d86e /llvm_mode/LLVMInsTrim.so.cc | |
parent | b98a5de39bfe4e09c218007efe289b49b23b939a (diff) | |
download | afl++-4cccdb89c0112931e451bc0719880813d15d14dc.tar.gz |
fix for instrim (not the important one)
Diffstat (limited to 'llvm_mode/LLVMInsTrim.so.cc')
-rw-r--r-- | llvm_mode/LLVMInsTrim.so.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc index 995a7217..08d3f68f 100644 --- a/llvm_mode/LLVMInsTrim.so.cc +++ b/llvm_mode/LLVMInsTrim.so.cc @@ -175,7 +175,8 @@ struct InsTrim : public ModulePass { for (Function &F : M) { - if (!F.size()) { continue; } + // if it is external or only contains one basic block: skip it + if (F.size() < 2) { continue; } if (!myWhitelist.empty()) { |