Skip to content

Commit 626f8e3

Browse files
committed
fuzz: actually test garbage >64b in p2p transport test
1 parent 015ac13 commit 626f8e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/fuzz/p2p_transport_serialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ std::unique_ptr<Transport> MakeV2Transport(NodeId nodeid, bool initiator, RNG& r
354354
} else {
355355
// If it's longer, generate it from the RNG. This avoids having large amounts of
356356
// (hopefully) irrelevant data needing to be stored in the fuzzer data.
357+
garb.resize(garb_len);
357358
for (auto& v : garb) v = uint8_t(rng());
358359
}
359360
// Retrieve entropy

0 commit comments

Comments
 (0)