OffchainLabs / arb-os

ArbOS operating system, to run at Layer 2 on Arbitrum chains. Also a compiler for Mini, the language in which ArbOS is written.
92 stars 21 forks source link

Blake2f instruction errors if steps > 0xffff #610

Closed edfelten closed 2 years ago

edfelten commented 3 years ago

Make the blake2f AVM instruction generate an error if the step count is greater than 0xffff. This is a safer way to deal with unexpected inputs, and consistent with the implementation being done in the C++ AVM.