diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-28 23:19:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 23:19:05 +0800 |
commit | 667514850600946f0273e8173bc7cf880c4511eb (patch) | |
tree | eb01a78a788bb79538d67125c050d5b313dc71ad /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 7e40def689db37658a03a53a6e02f3392823ed62 (diff) | |
parent | 6dba8cf0f47a41bece23d11de9da82bb19a572e1 (diff) | |
download | dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar.gz dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar.bz2 dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar.lz dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar.xz dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.tar.zst dexon-solidity-667514850600946f0273e8173bc7cf880c4511eb.zip |
Merge pull request #2662 from ethereum/fixEcrecover2
Fix ecrecover memory clear
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index a35008bf..02cc62be 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -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(); } |