mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix wrong cleanup when copying from calldata to memory
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
This commit is contained in:
committed by
Daniel Kirchner
co-authored by
Kamil Śliwak
parent
5b0f4a724a
commit
22c7cd22b9
@@ -114,10 +114,7 @@ object "C_59" {
|
||||
{
|
||||
mstore(add(add(memPos, i), _12), mload(add(add(memPtr_1, i), _4)))
|
||||
}
|
||||
if gt(i, length)
|
||||
{
|
||||
mstore(add(add(memPos, length), _12), _3)
|
||||
}
|
||||
mstore(add(add(memPos, length), _12), _3)
|
||||
return(memPos, add(sub(add(memPos, and(add(length, 31), _9)), memPos), _12))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user