diff options
author | hexcoder- <heiko@hexco.de> | 2020-09-01 19:54:18 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-09-01 19:54:18 +0200 |
commit | 6340674a23e9b8d2e8b3a8705be1129363a60d46 (patch) | |
tree | a65cc9c9069933317c2a0560e0d5525de5c8785f /llvm_mode/afl-llvm-lto-instrumentation.so.cc | |
parent | 4538f689ede6743d097c85ded2fdcb4f9663020b (diff) | |
parent | e4a86b40a5504c608d6ba7f44133ab39b24ac6f8 (diff) | |
download | afl++-6340674a23e9b8d2e8b3a8705be1129363a60d46.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'llvm_mode/afl-llvm-lto-instrumentation.so.cc')
-rw-r--r-- | llvm_mode/afl-llvm-lto-instrumentation.so.cc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/llvm_mode/afl-llvm-lto-instrumentation.so.cc b/llvm_mode/afl-llvm-lto-instrumentation.so.cc index c25cad9d..125db229 100644 --- a/llvm_mode/afl-llvm-lto-instrumentation.so.cc +++ b/llvm_mode/afl-llvm-lto-instrumentation.so.cc @@ -374,17 +374,29 @@ bool AFLLTOPass::runOnModule(Module &M) { std::string Str1, Str2; StringRef TmpStr; bool HasStr1 = getConstantStringInfo(Str1P, TmpStr); - if (TmpStr.empty()) + if (TmpStr.empty()) { + HasStr1 = false; - else + + } else { + + HasStr1 = true; Str1 = TmpStr.str(); + + } + bool HasStr2 = getConstantStringInfo(Str2P, TmpStr); - if (TmpStr.empty()) + if (TmpStr.empty()) { + HasStr2 = false; - (void) HasStr2 /* never read */ - else + + } else { + + HasStr2 = true; Str2 = TmpStr.str(); + } + if (debug) fprintf(stderr, "F:%s %p(%s)->\"%s\"(%s) %p(%s)->\"%s\"(%s)\n", FuncName.c_str(), Str1P, Str1P->getName().str().c_str(), |