diff options
| author | practicalswift <[email protected]> | 2020-11-12 14:09:09 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-11-12 15:33:43 +0000 |
| commit | d04a17a7907c57f7b570e1b9743fd63489bdad68 (patch) | |
| tree | 3f5a2d55f228e5636e197e59c4f41b65fa5bc30a /src/test/fuzz | |
| parent | tests: Add fuzzing harness for CAddrMan (diff) | |
| download | discoin-d04a17a7907c57f7b570e1b9743fd63489bdad68.tar.xz discoin-d04a17a7907c57f7b570e1b9743fd63489bdad68.zip | |
fuzz: Use ConsumeRandomLengthBitVector(...) in src/test/fuzz/connman and src/test/fuzz/net
Diffstat (limited to 'src/test/fuzz')
| -rw-r--r-- | src/test/fuzz/connman.cpp | 2 | ||||
| -rw-r--r-- | src/test/fuzz/net.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp index bb9d28a4a..6521c3f3b 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -117,7 +117,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) connman.RemoveAddedNode(random_string); break; case 24: { - const std::vector<bool> asmap = ConsumeRandomLengthIntegralVector<bool>(fuzzed_data_provider, 512); + const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider); if (SanityCheckASMap(asmap)) { connman.SetAsmap(asmap); } diff --git a/src/test/fuzz/net.cpp b/src/test/fuzz/net.cpp index 381883876..c61d40629 100644 --- a/src/test/fuzz/net.cpp +++ b/src/test/fuzz/net.cpp @@ -63,7 +63,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) break; } case 3: { - const std::vector<bool> asmap = ConsumeRandomLengthIntegralVector<bool>(fuzzed_data_provider, 128); + const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider); if (!SanityCheckASMap(asmap)) { break; } |