From fa2d8b61f9343d350b67357a12f39b613c8ee8ad Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 2 May 2023 17:34:12 +0200 Subject: [PATCH] fuzz: BIP 42, BIP 30, CVE-2018-17144 --- src/Makefile.test.include | 1 + src/test/fuzz/utxo_total_supply.cpp | 165 ++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 src/test/fuzz/utxo_total_supply.cpp diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 69965ed1b8c..461022bbfc5 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -344,6 +344,7 @@ test_fuzz_fuzz_SOURCES = \ test/fuzz/txorphan.cpp \ test/fuzz/txrequest.cpp \ test/fuzz/utxo_snapshot.cpp \ + test/fuzz/utxo_total_supply.cpp \ test/fuzz/validation_load_mempool.cpp \ test/fuzz/versionbits.cpp endif # ENABLE_FUZZ_BINARY diff --git a/src/test/fuzz/utxo_total_supply.cpp b/src/test/fuzz/utxo_total_supply.cpp new file mode 100644 index 00000000000..7813b7854b1 --- /dev/null +++ b/src/test/fuzz/utxo_total_supply.cpp @@ -0,0 +1,165 @@ +// Copyright (c) 2020 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include +#include +#include +#include +#include +#include