aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzz.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-10-07 08:28:01 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2019-10-07 08:48:35 +0000
commitffa22212560c9e7a8692cb8982d9b3b507ee9af1 (patch)
tree156ec3bb70eff63734d42f87b491c99cf2359c75 /src/test/fuzz/fuzz.h
parent7b701fef58f627956d597817a1f9422edd890cdc (diff)
tests: Pass fuzzing inputs as constant references
Diffstat (limited to 'src/test/fuzz/fuzz.h')
-rw-r--r--src/test/fuzz/fuzz.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/fuzz.h b/src/test/fuzz/fuzz.h
index 4e009d9b54..573bd572db 100644
--- a/src/test/fuzz/fuzz.h
+++ b/src/test/fuzz/fuzz.h
@@ -9,6 +9,6 @@
#include <vector>
-void test_one_input(std::vector<uint8_t> buffer);
+void test_one_input(const std::vector<uint8_t>& buffer);
#endif // BITCOIN_TEST_FUZZ_FUZZ_H