Bitcoin Core Fuzz Coverage Report

Coverage Report

Created: 2026-03-24 13:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/bitcoin/src/netmessagemaker.h
Line
Count
Source
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-present The Bitcoin Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef BITCOIN_NETMESSAGEMAKER_H
7
#define BITCOIN_NETMESSAGEMAKER_H
8
9
#include <net.h>
10
#include <serialize.h>
11
12
namespace NetMsg {
13
    template <typename... Args>
14
    CSerializedNetMsg Make(std::string msg_type, Args&&... args)
15
0
    {
16
0
        CSerializedNetMsg msg;
17
0
        msg.m_type = std::move(msg_type);
18
0
        VectorWriter{msg.data, 0, std::forward<Args>(args)...};
19
0
        return msg;
20
0
    }
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<TransactionSerParams, std::vector<CBlock, std::allocator<CBlock> > > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<TransactionSerParams, std::vector<CBlock, std::allocator<CBlock> > >&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<TransactionSerParams, CBlockHeaderAndShortTxIDs> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<TransactionSerParams, CBlockHeaderAndShortTxIDs>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<TransactionSerParams, CBlock> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<TransactionSerParams, CBlock>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::span<std::byte, 18446744073709551615ul> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::span<std::byte, 18446744073709551615ul>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<int&, Wrapper<CustomUintFormatter<8, false>, ServiceFlags&>, long, long, ParamsWrapper<CNetAddr::SerParams, CService>, long, ParamsWrapper<CNetAddr::SerParams, CService>, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, bool&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int&, Wrapper<CustomUintFormatter<8, false>, ServiceFlags&>&&, long&&, long&&, ParamsWrapper<CNetAddr::SerParams, CService>&&, long&&, ParamsWrapper<CNetAddr::SerParams, CService>&&, unsigned long&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, int&&, bool&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<bool, unsigned long const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool&&, unsigned long const&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<CBlockHeaderAndShortTxIDs const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CBlockHeaderAndShortTxIDs const&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::vector<CInv, std::allocator<CInv> >&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<CInv, std::allocator<CInv> >&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<TransactionSerParams, CTransaction const> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<TransactionSerParams, CTransaction const>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::span<std::byte const, 18446744073709551615ul> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::span<std::byte const, 18446744073709551615ul>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<TransactionSerParams, CBlock const> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<TransactionSerParams, CBlock const>&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<CMerkleBlock&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CMerkleBlock&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<CBlockHeaderAndShortTxIDs&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CBlockHeaderAndShortTxIDs&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<int const&, unsigned long&, long&, unsigned long&, ParamsWrapper<CNetAddr::SerParams, CService>, unsigned long&, ParamsWrapper<CNetAddr::SerParams, CService>, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int&, bool&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int const&, unsigned long&, long&, unsigned long&, ParamsWrapper<CNetAddr::SerParams, CService>&&, unsigned long&, ParamsWrapper<CNetAddr::SerParams, CService>&&, unsigned long&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int&, bool&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<unsigned int const&, unsigned long const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int const&, unsigned long const&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::array<std::byte, 168ul> const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::array<std::byte, 168ul> const&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::vector<CInv, std::allocator<CInv> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<CInv, std::allocator<CInv> >&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<CBlockLocator const&, uint256>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CBlockLocator const&, uint256&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<BlockTransactions&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, BlockTransactions&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<std::vector<CBlockHeader, std::allocator<CBlockHeader> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<CBlockHeader, std::allocator<CBlockHeader> >&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<BlockTransactionsRequest&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, BlockTransactionsRequest&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<unsigned long&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<BlockFilter const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, BlockFilter const&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<unsigned char&, uint256, uint256&, std::vector<uint256, std::allocator<uint256> >&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned char&, uint256&&, uint256&, std::vector<uint256, std::allocator<uint256> >&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<unsigned char&, uint256, std::vector<uint256, std::allocator<uint256> >&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned char&, uint256&&, std::vector<uint256, std::allocator<uint256> >&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<ParamsWrapper<CAddress::SerParams, std::vector<CAddress, std::allocator<CAddress> > > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParamsWrapper<CAddress::SerParams, std::vector<CAddress, std::allocator<CAddress> > >&&)
Unexecuted instantiation: CSerializedNetMsg NetMsg::Make<long&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long&)
21
} // namespace NetMsg
22
23
#endif // BITCOIN_NETMESSAGEMAKER_H