mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
fuzz: Avoid extraneous copy of input data, using Span<>
This commit is contained in:
parent
ea96e17e1f
commit
faf7d7418c
4 changed files with 10 additions and 11 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue