diff options
author | chriseth <chris@ethereum.org> | 2017-04-12 02:44:13 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-25 22:49:03 +0800 |
commit | f19e6a09a7b5293c70e98bbe66ab49aa45f76a73 (patch) | |
tree | f2559925ac2b36082120adb13d0a8680aa986a33 /libsolidity/inlineasm | |
parent | b622c2e9d3d13c4c9061488abbe795994e94cfcf (diff) | |
download | dexon-solidity-f19e6a09a7b5293c70e98bbe66ab49aa45f76a73.tar.gz dexon-solidity-f19e6a09a7b5293c70e98bbe66ab49aa45f76a73.tar.zst dexon-solidity-f19e6a09a7b5293c70e98bbe66ab49aa45f76a73.zip |
Check again that instruction argument count is correct.
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 53f48819..71416a07 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -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; |