tests: Pass fuzzing inputs as constant references

This commit is contained in:
practicalswift
2019-10-07 08:28:01 +00:00
parent 7b701fef58
commit ffa2221256
4 changed files with 5 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
/** Flags that are not forbidden by an assert */
static bool IsValidFlagCombination(unsigned flags);
void test_one_input(std::vector<uint8_t> buffer)
void test_one_input(const std::vector<uint8_t>& buffer)
{
CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
try {