Check again that instruction argument count is correct.

This commit is contained in:
chriseth 2017-04-11 20:44:13 +02:00
parent b622c2e9d3
commit f19e6a09a7

View File

@ -141,6 +141,7 @@ bool AsmAnalyzer::operator()(FunctionalInstruction const& _instr)
success = false;
}
// Parser already checks that the number of arguments is correct.
solAssert(instructionInfo(_instr.instruction).args == _instr.arguments.size(), "");
if (!(*this)(_instr.instruction))
success = false;
return success;