diff options
| author | van Hauser <vh@thc.org> | 2021-04-20 11:38:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 11:38:09 +0200 |
| commit | 48cef3c74727407f82c44800d382737265fe65b4 (patch) | |
| tree | 07338ec82703c20cc1f78a235ac3ad16e2465bf1 /instrumentation/afl-llvm-common.cc | |
| parent | f7179e44f6c46fef318b6413d9c00693c1af4602 (diff) | |
| parent | 3b5fa3632b0e482b2915709d7fbec827e1d997b9 (diff) | |
| download | afl++-48cef3c74727407f82c44800d382737265fe65b4.tar.gz | |
Merge pull request #871 from AFLplusplus/dev
push to stable
Diffstat (limited to 'instrumentation/afl-llvm-common.cc')
| -rw-r--r-- | instrumentation/afl-llvm-common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/instrumentation/afl-llvm-common.cc b/instrumentation/afl-llvm-common.cc index 74943fb2..24498f3e 100644 --- a/instrumentation/afl-llvm-common.cc +++ b/instrumentation/afl-llvm-common.cc @@ -104,7 +104,8 @@ bool isIgnoreFunction(const llvm::Function *F) { for (auto const &ignoreListFunc : ignoreSubstringList) { - if (F->getName().contains(ignoreListFunc)) { return true; } + // hexcoder: F->getName().contains() not avaiilable in llvm 3.8.0 + if (StringRef::npos != F->getName().find(ignoreListFunc)) { return true; } } |
