diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-02 11:38:12 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-02 11:38:12 +0100 |
commit | c269c3977ccb96710a2488b19c72bae51832a827 (patch) | |
tree | 6724b8e57a040004eee9e9cdea2694e12ed6f8f1 /instrumentation/compare-transform-pass.so.cc | |
parent | c3a8052a16f7d2d1947ea538719905a9d7a24d22 (diff) | |
download | afl++-c269c3977ccb96710a2488b19c72bae51832a827.tar.gz |
fix llvm for unicode strings (hopefully)
Diffstat (limited to 'instrumentation/compare-transform-pass.so.cc')
-rw-r--r-- | instrumentation/compare-transform-pass.so.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index bd524a69..84301493 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -229,9 +229,9 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, dyn_cast<ConstantDataArray>(Var->getInitializer())) { HasStr2 = true; - Str2 = Array->getAsString(); + Str2 = Array->getRawDataValues(); valueMap[Str2P] = new std::string(Str2.str()); - fprintf(stderr, "glo2 %s\n", Str2.str().c_str()); + // fprintf(stderr, "glo2 %s\n", Str2.str().c_str()); } @@ -254,7 +254,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, Var->getInitializer())) { HasStr1 = true; - Str1 = Array->getAsString(); + Str1 = Array->getRawDataValues(); valueMap[Str1P] = new std::string(Str1.str()); // fprintf(stderr, "glo1 %s\n", Str1.str().c_str()); |