diff options
author | vanhauser-thc <vh@thc.org> | 2021-11-23 19:34:21 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-11-23 19:34:21 +0100 |
commit | 11f89ab785f0b74c0862c46406f81007ac5cf3ba (patch) | |
tree | 0350e6b7e1060b48474ca828264e6b87af789c2b /instrumentation/compare-transform-pass.so.cc | |
parent | 39e2003630220bf2567a9f9d1babd0b32604a8c3 (diff) | |
download | afl++-11f89ab785f0b74c0862c46406f81007ac5cf3ba.tar.gz |
do not add zero byte on string compares with len
Diffstat (limited to 'instrumentation/compare-transform-pass.so.cc')
-rw-r--r-- | instrumentation/compare-transform-pass.so.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index b05da71c..5db9c409 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -442,6 +442,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, bool isSizedcmp = false; bool isCaseInsensitive = false; Function * Callee = callInst->getCalledFunction(); + if (Callee) { isMemcmp = Callee->getName().compare("memcmp") == 0; |