diff options
author | vanhauser-thc <vh@thc.org> | 2021-11-23 21:07:50 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-11-23 21:08:28 +0100 |
commit | 8c4435e7ef6cad7a0d475603469e98c09d32f504 (patch) | |
tree | fc6e356855f23e4f8dc38a85170c0b6aa2346bb1 /instrumentation/SanitizerCoverageLTO.so.cc | |
parent | 1fbb7cb2fa0ad10c09f8515124989d119558121d (diff) | |
download | afl++-8c4435e7ef6cad7a0d475603469e98c09d32f504.tar.gz |
fix for llvm < 11
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r-- | instrumentation/SanitizerCoverageLTO.so.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc index 7710e262..37726607 100644 --- a/instrumentation/SanitizerCoverageLTO.so.cc +++ b/instrumentation/SanitizerCoverageLTO.so.cc @@ -930,7 +930,8 @@ bool ModuleSanitizerCoverage::instrumentModule( } */ - if (!isStdString) { + if (!isStdString && + thestring.find('\0', 0) != std::string::npos) { // ensure we do not have garbage size_t offset = thestring.find('\0', 0); |