Submitted by zraxx, also found by RadiantLabs
https://github.com/code-423n4/2024-07-optimism/blob/main/packages/contracts-bedrock/src/cannon/MIPS.sol#L990-L993https://github.com/code-423n4/2024-07-optimism/blob/main/packages/contracts-bedrock/src/cannon/MIPS.sol#L1008-L1011
Instruction processing cannot detect problems in time.
According to this, page 99, Section Restrictions, the address must be naturally aligned. If the least-significant bit of the address is non-zero, an Address Error exception occurs. However, in the contract, the address is not checked.
Vscode
Check the address and when the least-significant bit of the address is non-zero, revert.
clabby (Optimism) confirmed and commented:
obront (judge) commented:
clabby (Optimism) commented:
obront (judge) commented:
