112 | @@ -111,4 +113,24 @@ void test_one_input(const std::vector<uint8_t>& buffer)
113 | static const uint256 u256_max(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
114 | TxToUniv(tx, u256_max, u);
115 | }
116 | +
117 | + {
118 | + FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
119 | + const CScript script = ConsumeScript(fuzzed_data_provider);
This code will never be executed when the buffer does not start with a valid transaction
Oh, good catch! Thanks a lot for noticing! I missed the return:s above (L37/42/45/61). Now fixed. Please re-review updated version :)