test/tools/ossfuzz/solProtoFuzzer.cpp
/// Accepts a reference to a user-specified input and returns an
/// evmc_message with all of its fields zero initialized except
/// gas and input fields.
/// The gas field is set to the maximum permissible value so that we
/// don't run into out of gas errors. The input field is copied from
/// user input.
Accepts a reference to a user-specified input and returns an
evmc_message with all of its fields zero initialized except
gas and input fields.
The gas field is set to the maximum permissible value so that we
don't run into out of gas errors. The input field is copied from
user input.
Accepts a reference to a user - specified input and returns an evmc_message with all of its fields zero initialized except gas and input fields . The gas field is set to the maximum permissible value so that we don ' t run into out of gas errors . The input field is copied from user input .
evmc_message initializeMessage(bytes const& _input)
{
	evmc_message msg = {};
	msg.gas = std::numeric_limits<int64_t>::max();
	msg.input_data = _input.data();
	msg.input_size = _input.size();
	return msg;
}
evmc_message initializeMessage ( bytes const & _input ) { evmc_message msg = { } ; msg . gas = std :: numeric_limits < int64_t > :: max ( ) ; msg . input_data = _input . data ( ) ; msg . input_size = _input . size ( ) ; return msg ; }
Accepts a reference to a user-specified input and returns an
evmc_message with all of its fields zero initialized except
gas and input fields.
Accepts a reference to a user - specified input and returns an evmc_message with all of its fields zero initialized except gas and input fields .
// Zero initialize all message fields // Gas available (value of type int64_t) is set to its maximum // value.