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/FuzzerTracePC.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/FuzzerTracePC.h')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerTracePC.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerTracePC.h b/llvm/lib/Fuzzer/FuzzerTracePC.h index 4c8a18f830f..85c8e3cb2b6 100644 --- a/llvm/lib/Fuzzer/FuzzerTracePC.h +++ b/llvm/lib/Fuzzer/FuzzerTracePC.h @@ -34,7 +34,7 @@ struct TableOfRecentCompares { T A, B; }; ATTRIBUTE_NO_SANITIZE_ALL - void Insert(size_t Idx, T Arg1, T Arg2) { + void Insert(size_t Idx, const T &Arg1, const T &Arg2) { Idx = Idx % kSize; Table[Idx].A = Arg1; Table[Idx].B = Arg2; |

