aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/process_message.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-01-02 19:29:36 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-02-03 19:30:14 +0100
commitfaf7d7418cf01cb04cd457bcc630654da958a777 (patch)
tree7adaeeef624d4921c6895b715197a5dcf47b2ac7 /src/test/fuzz/process_message.cpp
parentea96e17e1f2c2b0a949366260906ef02e560a425 (diff)
fuzz: Avoid extraneous copy of input data, using Span<>
Diffstat (limited to 'src/test/fuzz/process_message.cpp')
-rw-r--r--src/test/fuzz/process_message.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/fuzz/process_message.cpp b/src/test/fuzz/process_message.cpp
index e7cc0f5297..a3e46ca2a2 100644
--- a/src/test/fuzz/process_message.cpp
+++ b/src/test/fuzz/process_message.cpp
@@ -30,7 +30,6 @@
#include <iostream>
#include <memory>
#include <string>
-#include <vector>
namespace {
const TestingSetup* g_setup;
@@ -46,7 +45,7 @@ void initialize_process_message()
SyncWithValidationInterfaceQueue();
}
-void fuzz_target(const std::vector<uint8_t>& buffer, const std::string& LIMIT_TO_MESSAGE_TYPE)
+void fuzz_target(FuzzBufferType buffer, const std::string& LIMIT_TO_MESSAGE_TYPE)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());