diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 15:32:22 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 15:32:22 +0100 |
commit | b7af98e94561ebe44ea37304a357b00499d1104d (patch) | |
tree | 6ba2356e8e6879ae4c528e9a4f775132868a00fc /custom_mutators/libfuzzer/FuzzerDictionary.h | |
parent | 5cdbfeef4a84b9dc2e5f8e88ee018c6c6e72fa44 (diff) | |
download | afl++-b7af98e94561ebe44ea37304a357b00499d1104d.tar.gz |
code cleanups (from cppcheck mostly)
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; } |