Throw if calling the identity precompile (memoryCopy) failed

This commit is contained in:
Alex Beregszaszi
2016-12-02 13:18:39 +00:00
parent 3a01a87afe
commit 86d54c02cd
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -312,7 +312,8 @@ void CompilerUtils::memoryCopy()
m_context << Instruction::DIV << u256(c_identityWordGas) << Instruction::MUL;
m_context << u256(c_identityGas) << Instruction::ADD;
m_context << Instruction::CALL;
m_context << Instruction::POP; // ignore return value
m_context << Instruction::ISZERO;
m_context.appendConditionalJumpTo(m_context.errorTag());
}
void CompilerUtils::splitExternalFunctionType(bool _leftAligned)