mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Array Length mistankingly taken as Offset
The array length was directly taken as an offset without the necessary multiplication with `0x20`.
This commit is contained in:
parent
f5f1bec759
commit
fb08030a07
@ -115,7 +115,7 @@ you really know what you are doing.
|
||||
|
||||
// Iterate until the bound is not met.
|
||||
for
|
||||
{ let end := add(data, len) }
|
||||
{ let end := add(data, mul(len, 0x20)) }
|
||||
lt(data, end)
|
||||
{ data := add(data, 0x20) }
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user