diff options
author | chriseth <chris@ethereum.org> | 2017-06-23 23:20:07 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-28 23:55:49 +0800 |
commit | 168f64f4cb55a7055261a4c66ca54f496e96b503 (patch) | |
tree | ebad17e2b6450183c2ef4b6738f1faa169f2dd65 /libevmasm | |
parent | 46caff4597a1cafbafe0cbcc9fb7e7478dd2a0e3 (diff) | |
download | dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.gz dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.bz2 dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.lz dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.xz dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.tar.zst dexon-solidity-168f64f4cb55a7055261a4c66ca54f496e96b503.zip |
Fix negative stack size checks.
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/Assembly.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 27199b7b..597fdae1 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -328,6 +328,7 @@ Json::Value Assembly::stream(ostream& _out, string const& _prefix, StringMap con AssemblyItem const& Assembly::append(AssemblyItem const& _i) { + assertThrow(m_deposit >= 0, AssemblyException, ""); m_deposit += _i.deposit(); m_items.push_back(_i); if (m_items.back().location().isEmpty() && !m_currentSourceLocation.isEmpty()) |