mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix for invalid clearing of memory in ecrecover.
This commit is contained in:
parent
368a8a62c1
commit
b74118ec57
@ -1622,7 +1622,7 @@ void ExpressionCompiler::appendExternalFunctionCall(
|
||||
// zero bytes (which we cannot detect).
|
||||
solAssert(0 < retSize && retSize <= 32, "");
|
||||
utils().fetchFreeMemoryPointer();
|
||||
m_context << Instruction::DUP1 << u256(0) << Instruction::MSTORE;
|
||||
m_context << u256(0) << Instruction::DUP2 << Instruction::MSTORE;
|
||||
m_context << u256(32) << Instruction::ADD;
|
||||
utils().storeFreeMemoryPointer();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user