Branch data Line data Source code
1 : : // Copyright (c) 2019-present The Bitcoin Core developers
2 : : // Distributed under the MIT software license, see the accompanying
3 : : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 : :
5 : : #include <consensus/validation.h>
6 : : #include <core_memusage.h>
7 : : #include <primitives/transaction.h>
8 : : #include <streams.h>
9 : : #include <test/fuzz/fuzz.h>
10 : :
11 : :
12 [ + - ]: 552 : FUZZ_TARGET(tx_in)
13 : : {
14 : 76 : CTxIn tx_in;
15 : 76 : try {
16 [ + + ]: 76 : SpanReader{buffer} >> tx_in;
17 [ - + ]: 17 : } catch (const std::ios_base::failure&) {
18 : 17 : return;
19 : 17 : }
20 : :
21 : 59 : (void)GetTransactionInputWeight(tx_in);
22 : 59 : (void)RecursiveDynamicUsage(tx_in);
23 : :
24 [ + - ]: 118 : (void)tx_in.ToString();
25 : 76 : }
|