mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
fuzz: Avoid signed-integer-overflow in wallet_notifications fuzz target
This commit is contained in:
parent
8cf2137dbe
commit
fab164f342
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright (c) 2021-2022 The Bitcoin Core developers
|
||||
// Copyright (c) 2021-present The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
|
@ -169,7 +169,7 @@ FUZZ_TARGET(wallet_notifications, .init = initialize_setup)
|
|||
// The total amount, to be distributed to the wallets a and b in txs
|
||||
// without fee. Thus, the balance of the wallets should always equal the
|
||||
// total amount.
|
||||
const auto total_amount{ConsumeMoney(fuzzed_data_provider)};
|
||||
const auto total_amount{ConsumeMoney(fuzzed_data_provider, /*max=*/MAX_MONEY / 100000)};
|
||||
FuzzedWallet a{
|
||||
"fuzzed_wallet_a",
|
||||
"tprv8ZgxMBicQKsPd1QwsGgzfu2pcPYbBosZhJknqreRHgsWx32nNEhMjGQX2cgFL8n6wz9xdDYwLcs78N4nsCo32cxEX8RBtwGsEGgybLiQJfk",
|
||||
|
|
Loading…
Reference in a new issue