Warn early when exhausting stack

This commit is contained in:
Alex Beregszaszi 2017-02-02 01:29:24 +00:00
parent 7ec3dd9bbc
commit ba0015cf25

View File

@ -200,6 +200,7 @@ void CompilerUtils::encodeToMemory(
// leave end_of_mem as dyn head pointer
m_context << Instruction::DUP1 << u256(32) << Instruction::ADD;
dynPointers++;
solAssert((argSize + dynPointers) < 16, "Stack too deep, try using less variables.");
}
else
{