diff options
author | van Hauser <vh@thc.org> | 2021-01-20 19:12:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 19:12:52 +0100 |
commit | 068bef5eab942df0a133c92522f2ab81b28ac636 (patch) | |
tree | 4689cb46e0d543af889609e260b1ff03455a2701 /custom_mutators/libfuzzer/FuzzerDictionary.h | |
parent | 271116f8705e08d1b4f924cda6c6cae1b0b5de2b (diff) | |
parent | b9e855b7b5ef3d7f367b32ee03459a9f5b21360f (diff) | |
download | afl++-068bef5eab942df0a133c92522f2ab81b28ac636.tar.gz |
Merge pull request #691 from AFLplusplus/dev
push to stable
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerDictionary.h')
-rw-r--r-- | custom_mutators/libfuzzer/FuzzerDictionary.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerDictionary.h b/custom_mutators/libfuzzer/FuzzerDictionary.h index 301c5d9a..ddd2d2f1 100644 --- a/custom_mutators/libfuzzer/FuzzerDictionary.h +++ b/custom_mutators/libfuzzer/FuzzerDictionary.h @@ -49,7 +49,7 @@ typedef FixedWord<64> Word; class DictionaryEntry { public: DictionaryEntry() {} - DictionaryEntry(Word W) : W(W) {} + explicit DictionaryEntry(Word W) : W(W) {} DictionaryEntry(Word W, size_t PositionHint) : W(W), PositionHint(PositionHint) {} const Word &GetW() const { return W; } @@ -92,7 +92,7 @@ class Dictionary { assert(Idx < Size); return DE[Idx]; } - void push_back(DictionaryEntry DE) { + void push_back(const DictionaryEntry &DE) { if (Size < kMaxDictSize) this->DE[Size++] = DE; } |