diff options
| author | Kostya Serebryany <kcc@google.com> | 2017-03-31 02:21:28 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2017-03-31 02:21:28 +0000 |
| commit | af2dfce6834f6bb4ea829cdc1c1bf6ee72bc6623 (patch) | |
| tree | 60b5b81556b025efaf7dbcf0bccc9a473e1d4d68 /llvm/lib/Fuzzer/FuzzerDictionary.h | |
| parent | 9fd267c221421a1e7df741bace0e3cc18ac2d079 (diff) | |
| download | bcm5719-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/FuzzerDictionary.h')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerDictionary.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDictionary.h b/llvm/lib/Fuzzer/FuzzerDictionary.h index f5024b1aeec..84cee87b897 100644 --- a/llvm/lib/Fuzzer/FuzzerDictionary.h +++ b/llvm/lib/Fuzzer/FuzzerDictionary.h @@ -33,10 +33,12 @@ public: } bool operator==(const FixedWord<kMaxSize> &w) const { + ScopedDoingMyOwnMemOrStr scoped_doing_my_own_mem_os_str; return Size == w.Size && 0 == memcmp(Data, w.Data, Size); } bool operator<(const FixedWord<kMaxSize> &w) const { + ScopedDoingMyOwnMemOrStr scoped_doing_my_own_mem_os_str; if (Size != w.Size) return Size < w.Size; return memcmp(Data, w.Data, Size) < 0; |

