Skip to content

Commit d04a17a

Browse files
fuzz: Use ConsumeRandomLengthBitVector(...) in src/test/fuzz/connman and src/test/fuzz/net
1 parent e6bb9fd commit d04a17a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/fuzz/connman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
117117
connman.RemoveAddedNode(random_string);
118118
break;
119119
case 24: {
120-
const std::vector<bool> asmap = ConsumeRandomLengthIntegralVector<bool>(fuzzed_data_provider, 512);
120+
const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider);
121121
if (SanityCheckASMap(asmap)) {
122122
connman.SetAsmap(asmap);
123123
}

src/test/fuzz/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
6363
break;
6464
}
6565
case 3: {
66-
const std::vector<bool> asmap = ConsumeRandomLengthIntegralVector<bool>(fuzzed_data_provider, 128);
66+
const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider);
6767
if (!SanityCheckASMap(asmap)) {
6868
break;
6969
}

0 commit comments

Comments
 (0)