about summary refs log tree commit diff
path: root/instrumentation/afl-llvm-lto-instrumentation.so.cc
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-02 11:38:12 +0100
committervanhauser-thc <vh@thc.org>2021-03-02 11:38:12 +0100
commitc269c3977ccb96710a2488b19c72bae51832a827 (patch)
tree6724b8e57a040004eee9e9cdea2694e12ed6f8f1 /instrumentation/afl-llvm-lto-instrumentation.so.cc
parentc3a8052a16f7d2d1947ea538719905a9d7a24d22 (diff)
downloadafl++-c269c3977ccb96710a2488b19c72bae51832a827.tar.gz
fix llvm for unicode strings (hopefully)
Diffstat (limited to 'instrumentation/afl-llvm-lto-instrumentation.so.cc')
-rw-r--r--instrumentation/afl-llvm-lto-instrumentation.so.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/afl-llvm-lto-instrumentation.so.cc b/instrumentation/afl-llvm-lto-instrumentation.so.cc
index 137bae2c..1f21b917 100644
--- a/instrumentation/afl-llvm-lto-instrumentation.so.cc
+++ b/instrumentation/afl-llvm-lto-instrumentation.so.cc
@@ -519,7 +519,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
                             Var->getInitializer())) {
 
                       HasStr2 = true;
-                      Str2 = Array->getAsString().str();
+                      Str2 = Array->getRawDataValues().str();
 
                     }
 
@@ -595,7 +595,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
                             Var->getInitializer())) {
 
                       HasStr1 = true;
-                      Str1 = Array->getAsString().str();
+                      Str1 = Array->getRawDataValues().str();
 
                     }