We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d23cdf6 + fa31c4d commit f1b4975Copy full SHA for f1b4975
src/test/fuzz/transaction.cpp
@@ -101,7 +101,14 @@ FUZZ_TARGET_INIT(transaction, initialize_transaction)
101
(void)AreInputsStandard(tx, coins_view_cache);
102
(void)IsWitnessStandard(tx, coins_view_cache);
103
104
- UniValue u(UniValue::VOBJ);
105
- TxToUniv(tx, /*block_hash=*/uint256::ZERO, /*entry=*/u);
106
- TxToUniv(tx, /*block_hash=*/uint256::ONE, /*entry=*/u);
+ if (tx.GetTotalSize() < 250'000) { // Avoid high memory usage (with msan) due to json encoding
+ {
+ UniValue u{UniValue::VOBJ};
107
+ TxToUniv(tx, /*block_hash=*/uint256::ZERO, /*entry=*/u);
108
+ }
109
110
111
+ TxToUniv(tx, /*block_hash=*/uint256::ONE, /*entry=*/u);
112
113
114
}
0 commit comments