summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerMutate.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-03-31 02:21:28 +0000
committerKostya Serebryany <kcc@google.com>2017-03-31 02:21:28 +0000
commitaf2dfce6834f6bb4ea829cdc1c1bf6ee72bc6623 (patch)
tree60b5b81556b025efaf7dbcf0bccc9a473e1d4d68 /llvm/lib/Fuzzer/FuzzerMutate.cpp
parent9fd267c221421a1e7df741bace0e3cc18ac2d079 (diff)
downloadbcm5719-llvm-af2dfce6834f6bb4ea829cdc1c1bf6ee72bc6623.tar.gz
bcm5719-llvm-af2dfce6834f6bb4ea829cdc1c1bf6ee72bc6623.zip
[libFuzzer] make sure we don't execute libFuzzer's mem* and str* hooks while calling mem*/str* inside libFuzzer itself
llvm-svn: 299167
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerMutate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.cpp b/llvm/lib/Fuzzer/FuzzerMutate.cpp
index c9768e4a5f2..cd846c7deec 100644
--- a/llvm/lib/Fuzzer/FuzzerMutate.cpp
+++ b/llvm/lib/Fuzzer/FuzzerMutate.cpp
@@ -202,7 +202,7 @@ DictionaryEntry MutationDispatcher::MakeDictionaryEntryFromCMP(
const void *Arg1Mutation, const void *Arg2Mutation,
size_t ArgSize, const uint8_t *Data,
size_t Size) {
- ScopedDoingMyOwnMemmem scoped_doing_my_own_memmem;
+ ScopedDoingMyOwnMemOrStr scoped_doing_my_own_mem_os_str;
bool HandleFirst = Rand.RandBool();
const void *ExistingBytes, *DesiredBytes;
Word W;
OpenPOWER on IntegriCloud