diff options
author | van Hauser <vh@thc.org> | 2023-04-12 10:54:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 10:54:08 +0200 |
commit | 4f2d9eeaaa6b702ef28eb883f9000321eaf1fe9b (patch) | |
tree | 125cecc79c148552844723e95ddd246bf918d6fc /instrumentation/afl-llvm-common.cc | |
parent | 7101192865893e00b9029d0cb898a3ca3015d50b (diff) | |
parent | 743ae507756db0707a213cd8272b219b0de0f514 (diff) | |
download | afl++-4f2d9eeaaa6b702ef28eb883f9000321eaf1fe9b.tar.gz |
Merge pull request #1700 from AFLplusplus/dev
push to stable
Diffstat (limited to 'instrumentation/afl-llvm-common.cc')
-rw-r--r-- | instrumentation/afl-llvm-common.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/instrumentation/afl-llvm-common.cc b/instrumentation/afl-llvm-common.cc index dc34d191..5d82aa25 100644 --- a/instrumentation/afl-llvm-common.cc +++ b/instrumentation/afl-llvm-common.cc @@ -289,6 +289,7 @@ void scanForDangerousFunctions(llvm::Module *M) { StringRef ifunc_name = IF.getName(); Constant *r = IF.getResolver(); + if (r->getNumOperands() == 0) { continue; } StringRef r_name = cast<Function>(r->getOperand(0))->getName(); if (!be_quiet) fprintf(stderr, |