diff options
| author | Matt Morehouse <mascasa@google.com> | 2018-07-17 16:12:00 +0000 |
|---|---|---|
| committer | Matt Morehouse <mascasa@google.com> | 2018-07-17 16:12:00 +0000 |
| commit | 43a229697622b5933da1fdeb61d4eac2a2b7742c (patch) | |
| tree | fa55d447d062835c5be38fc82c485dfa7f3622fa /compiler-rt/lib/fuzzer/FuzzerMutate.cpp | |
| parent | a448670b5b5c896ccaf4fa016783f684ddab7939 (diff) | |
| download | bcm5719-llvm-43a229697622b5933da1fdeb61d4eac2a2b7742c.tar.gz bcm5719-llvm-43a229697622b5933da1fdeb61d4eac2a2b7742c.zip | |
libFuzzer: prevent irrelevant strings from leaking into auto-dictionary
This is a fix for bug 37047.
https://bugs.llvm.org/show_bug.cgi?id=37047
Implemented by basically reversing the logic. Previously all strings
were considered, with some operations excluded. Now strings are excluded
by default, and only strings during the CB considered.
Patch By: pdknsk
Differential Revision: https://reviews.llvm.org/D48800
llvm-svn: 337296
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerMutate.cpp')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerMutate.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerMutate.cpp b/compiler-rt/lib/fuzzer/FuzzerMutate.cpp index 865e598fdc8..6f6ce075ab9 100644 --- a/compiler-rt/lib/fuzzer/FuzzerMutate.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerMutate.cpp @@ -195,7 +195,6 @@ DictionaryEntry MutationDispatcher::MakeDictionaryEntryFromCMP( const void *Arg1Mutation, const void *Arg2Mutation, size_t ArgSize, const uint8_t *Data, size_t Size) { - ScopedDoingMyOwnMemOrStr scoped_doing_my_own_mem_os_str; bool HandleFirst = Rand.RandBool(); const void *ExistingBytes, *DesiredBytes; Word W; |

