From d04a17a7907c57f7b570e1b9743fd63489bdad68 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 12 Nov 2020 14:09:09 +0000 Subject: [PATCH] fuzz: Use ConsumeRandomLengthBitVector(...) in src/test/fuzz/connman and src/test/fuzz/net --- src/test/fuzz/connman.cpp | 2 +- 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 bb9d28a4ab..6521c3f3b2 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -117,7 +117,7 @@ void test_one_input(const std::vector& buffer) connman.RemoveAddedNode(random_string); break; case 24: { - const std::vector asmap = ConsumeRandomLengthIntegralVector(fuzzed_data_provider, 512); + const std::vector 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 3818838765..c61d406291 100644 --- a/src/test/fuzz/net.cpp +++ b/src/test/fuzz/net.cpp @@ -63,7 +63,7 @@ void test_one_input(const std::vector& buffer) break; } case 3: { - const std::vector asmap = ConsumeRandomLengthIntegralVector(fuzzed_data_provider, 128); + const std::vector asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider); if (!SanityCheckASMap(asmap)) { break; }