mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove upper bound on test case size.
This commit is contained in:
parent
505bcc8d6d
commit
b3d4b2defb
@ -76,11 +76,6 @@ DEFINE_PROTO_FUZZER(Program const& _input)
|
||||
EVMHost hostContext(version, evmone);
|
||||
hostContext.reset();
|
||||
|
||||
// Do not proceed with tests that are too large. 1200 is an arbitrary
|
||||
// threshold.
|
||||
if (yulSubObject.size() > 1200)
|
||||
return;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
// Package test case into a sub-object
|
||||
@ -120,7 +115,10 @@ DEFINE_PROTO_FUZZER(Program const& _input)
|
||||
unoptimizedState,
|
||||
stackUnoptimized.parserResult()->code,
|
||||
EVMDialect::strictAssemblyForEVMObjects(version),
|
||||
true
|
||||
true,
|
||||
10000,
|
||||
10000,
|
||||
100
|
||||
);
|
||||
if (yulFuzzerUtil::resourceLimitsExceeded(termReason))
|
||||
return;
|
||||
|
@ -23,9 +23,9 @@ namespace solidity::yul::test::yul_fuzzer
|
||||
|
||||
struct yulFuzzerUtil
|
||||
{
|
||||
enum class TerminationReason
|
||||
enum class TerminationReason: size_t
|
||||
{
|
||||
ExplicitlyTerminated,
|
||||
ExplicitlyTerminated = 0,
|
||||
StepLimitReached,
|
||||
TraceLimitReached,
|
||||
ExpresionNestingLimitReached,
|
||||
|
Loading…
Reference in New Issue
Block a user