Merge pull request #10047 from ethereum/removeMemoryGuards

Disable StackLimitEvader again until we have stronger correctness guarantees.
This commit is contained in:
chriseth
2020-10-15 18:56:33 +02:00
committed by GitHub
18 changed files with 53 additions and 163 deletions
+3
View File
@@ -668,6 +668,9 @@ string IRGenerator::dispatchRoutine(ContractDefinition const& _contract)
string IRGenerator::memoryInit(bool _useMemoryGuard)
{
// TODO: Remove once we have made sure it is safe, i.e. after "Yul memory objects lite".
// Also restore the tests removed in the commit that adds this comment.
_useMemoryGuard = false;
// This function should be called at the beginning of the EVM call frame
// and thus can assume all memory to be zero, including the contents of
// the "zero memory area" (the position CompilerUtils::zeroPointer points to).