mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7330 from ethereum/fix-yuli-mload
Yul interpreter: Out of bounds mloads return zero
This commit is contained in:
commit
d1831b159d
@ -250,8 +250,7 @@ u256 EVMInstructionInterpreter::eval(
|
||||
case Instruction::MLOAD:
|
||||
if (accessMemory(arg[0], 0x20))
|
||||
return readMemoryWord(arg[0]);
|
||||
else
|
||||
return 0x1234 + arg[0];
|
||||
return 0;
|
||||
case Instruction::MSTORE:
|
||||
if (accessMemory(arg[0], 0x20))
|
||||
writeMemoryWord(arg[0], arg[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user