diff options
author | chriseth <chris@ethereum.org> | 2018-08-14 19:00:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 19:00:26 +0800 |
commit | 8f0c2a46db787de166f7bcaed2180fcab9248d12 (patch) | |
tree | 412051802e1811e77d8254d2085096de4d62463e /libevmasm/Assembly.cpp | |
parent | d01ffd1ad9737a13a7d39e33246d101b36b5cd93 (diff) | |
parent | 17cac588d053429ff74c53fd82648da7c8c55db9 (diff) | |
download | dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar.gz dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar.bz2 dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar.lz dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar.xz dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.tar.zst dexon-solidity-8f0c2a46db787de166f7bcaed2180fcab9248d12.zip |
Merge pull request #4813 from ethereum/replace_safety_stop
Replace safety stop by invalid
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 28ae9577..e49e675d 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -617,8 +617,8 @@ LinkerObject const& Assembly::assemble() const } if (!m_subs.empty() || !m_data.empty() || !m_auxiliaryData.empty()) - // Append a STOP just to be sure. - ret.bytecode.push_back(0); + // Append an INVALID here to help tests find miscompilation. + ret.bytecode.push_back(byte(Instruction::INVALID)); for (size_t i = 0; i < m_subs.size(); ++i) { |