2021-01-25 12:23:45 +01:00
|
|
|
// Copyright (c) 2020-2021 The Bitcoin Core developers
|
2020-11-12 15:07:53 +00:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#include <addrman.h>
|
|
|
|
#include <net.h>
|
|
|
|
#include <test/fuzz/FuzzedDataProvider.h>
|
|
|
|
#include <test/fuzz/fuzz.h>
|
|
|
|
#include <test/fuzz/util.h>
|
2021-01-25 12:22:03 +01:00
|
|
|
#include <test/util/setup_common.h>
|
2020-11-12 15:07:53 +00:00
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
void initialize_data_stream_addr_man()
|
|
|
|
{
|
2021-01-25 12:23:45 +01:00
|
|
|
static const auto testing_setup = MakeNoLogFileContext<>();
|
2020-11-12 15:07:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FUZZ_TARGET_INIT(data_stream_addr_man, initialize_data_stream_addr_man)
|
|
|
|
{
|
|
|
|
FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
|
|
|
|
CDataStream data_stream = ConsumeDataStream(fuzzed_data_provider);
|
|
|
|
CAddrMan addr_man;
|
|
|
|
CAddrDB::Read(addr_man, data_stream);
|
|
|
|
}
|