Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/deserialize.cpp
// Copyright (c) 2009-2018 The Bitcoin Core developers | // Copyright (c) 2009-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <addrdb.h> | |||||
#include <addrman.h> | #include <addrman.h> | ||||
#include <blockencodings.h> | #include <blockencodings.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <coins.h> | #include <coins.h> | ||||
#include <compressor.h> | #include <compressor.h> | ||||
#include <consensus/merkle.h> | #include <consensus/merkle.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <primitives/block.h> | #include <primitives/block.h> | ||||
#include <protocol.h> | #include <protocol.h> | ||||
#include <pubkey.h> | |||||
#include <script/script.h> | |||||
#include <streams.h> | #include <streams.h> | ||||
#include <undo.h> | #include <undo.h> | ||||
#include <version.h> | #include <version.h> | ||||
#include <test/fuzz/fuzz.h> | #include <test/fuzz/fuzz.h> | ||||
#include <algorithm> | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <vector> | #include <vector> | ||||
void test_one_input(std::vector<uint8_t> buffer) { | void test_one_input(std::vector<uint8_t> buffer) { | ||||
CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION); | CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION); | ||||
try { | try { | ||||
int nVersion; | int nVersion; | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |