Skip to content

Commit

Permalink
fuzz: actually test garbage >64b in p2p transport test
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Mar 17, 2024
1 parent 015ac13 commit 626f8e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/fuzz/p2p_transport_serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ std::unique_ptr<Transport> MakeV2Transport(NodeId nodeid, bool initiator, RNG& r
} else {
// If it's longer, generate it from the RNG. This avoids having large amounts of
// (hopefully) irrelevant data needing to be stored in the fuzzer data.
garb.resize(garb_len);
for (auto& v : garb) v = uint8_t(rng());
}
// Retrieve entropy
Expand Down

0 comments on commit 626f8e3

Please sign in to comment.