aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-12 03:12:17 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:49:04 +0800
commitdfaab73efe1811848a52a218a207f2d4f007a2d8 (patch)
treef2d5ef4459be7bd01101c8485715dda77b0d7dfd /libsolidity/inlineasm
parentf19e6a09a7b5293c70e98bbe66ab49aa45f76a73 (diff)
downloaddexon-solidity-dfaab73efe1811848a52a218a207f2d4f007a2d8.tar.gz
dexon-solidity-dfaab73efe1811848a52a218a207f2d4f007a2d8.tar.zst
dexon-solidity-dfaab73efe1811848a52a218a207f2d4f007a2d8.zip
Only allow access to local variables and only if they have a stack size of one.
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index 71416a07..9ff15fd0 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -141,7 +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(), "");
+ solAssert(instructionInfo(_instr.instruction.instruction).args == int(_instr.arguments.size()), "");
if (!(*this)(_instr.instruction))
success = false;
return success;