diff options
| author | Kostya Serebryany <kcc@google.com> | 2017-01-17 23:09:05 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2017-01-17 23:09:05 +0000 |
| commit | 1d8c2ce97efe45510be329e4238955608640515e (patch) | |
| tree | b38ef59cbe3dd3bf7a8b8eebbbe3254cac1bca38 /llvm/lib/Fuzzer/FuzzerMutate.h | |
| parent | 138ed2b0686ebca6514885b02f0fa544a9343b3e (diff) | |
| download | bcm5719-llvm-1d8c2ce97efe45510be329e4238955608640515e.tar.gz bcm5719-llvm-1d8c2ce97efe45510be329e4238955608640515e.zip | |
[libFuzzer] use table of recent compares for memcmp/strcmp (to unify the code between cmp and memcmp handling)
llvm-svn: 292287
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.h')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerMutate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.h b/llvm/lib/Fuzzer/FuzzerMutate.h index 26e23aff955..3d78b111c66 100644 --- a/llvm/lib/Fuzzer/FuzzerMutate.h +++ b/llvm/lib/Fuzzer/FuzzerMutate.h @@ -114,6 +114,13 @@ private: template <class T> DictionaryEntry MakeDictionaryEntryFromCMP(T Arg1, T Arg2, const uint8_t *Data, size_t Size); + DictionaryEntry MakeDictionaryEntryFromCMP(const Word &Arg1, const Word &Arg2, + const uint8_t *Data, size_t Size); + DictionaryEntry MakeDictionaryEntryFromCMP(const void *Arg1, const void *Arg2, + const void *Arg1Mutation, + const void *Arg2Mutation, + size_t ArgSize, + const uint8_t *Data, size_t Size); Random &Rand; const FuzzingOptions Options; |

