File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ FUZZ_TARGET(utxo_total_supply)
94
94
assert (ActiveHeight () == 0 );
95
95
// Get at which height we duplicate the coinbase
96
96
// Assuming that the fuzzer will mine relatively short chains (less than 200 blocks), we want the duplicate coinbase to be not too high.
97
- // Up to 2000 seems reasonable.
98
- int64_t duplicate_coinbase_height = fuzzed_data_provider.ConsumeIntegralInRange (0 , 20 * COINBASE_MATURITY );
97
+ // Up to 300 seems reasonable.
98
+ int64_t duplicate_coinbase_height = fuzzed_data_provider.ConsumeIntegralInRange (0 , 300 );
99
99
// Always pad with OP_0 at the end to avoid bad-cb-length error
100
100
const CScript duplicate_coinbase_script = CScript () << duplicate_coinbase_height << OP_0;
101
101
// Mine the first block with this duplicate
@@ -121,7 +121,7 @@ FUZZ_TARGET(utxo_total_supply)
121
121
122
122
// Limit to avoid timeout, but enough to cover duplicate_coinbase_height
123
123
// and CVE-2018-17144.
124
- LIMITED_WHILE (fuzzed_data_provider.remaining_bytes (), 2'000 )
124
+ LIMITED_WHILE (fuzzed_data_provider.remaining_bytes (), 2'00 )
125
125
{
126
126
CallOneOf (
127
127
fuzzed_data_provider,
You can’t perform that action at this time.
0 commit comments