mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reset Yul string repository before each compilation.
This commit is contained in:
committed by
chriseth
parent
b95eebee1c
commit
dbae0fa939
@@ -27,6 +27,8 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
|
||||
if (_size > 600)
|
||||
return 0;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
string input(reinterpret_cast<char const*>(_data), _size);
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
|
||||
@@ -55,6 +55,8 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
|
||||
}))
|
||||
return 0;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
AssemblyStack::Language::StrictAssembly,
|
||||
|
||||
@@ -26,6 +26,8 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
|
||||
if (_size > 600)
|
||||
return 0;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
string input(reinterpret_cast<char const*>(_data), _size);
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
|
||||
@@ -46,6 +46,8 @@ DEFINE_PROTO_FUZZER(Program const& _input)
|
||||
if (yul_source.size() > 1200)
|
||||
return;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
// AssemblyStack entry point
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
|
||||
@@ -53,6 +53,8 @@ DEFINE_PROTO_FUZZER(Program const& _input)
|
||||
if (yul_source.size() > 1200)
|
||||
return;
|
||||
|
||||
YulStringRepository::reset();
|
||||
|
||||
// AssemblyStack entry point
|
||||
AssemblyStack stack(
|
||||
langutil::EVMVersion(),
|
||||
|
||||
Reference in New Issue
Block a user