From 70ad8ec508860c13a6f2e6a8bb6dba91f0e910b0 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 5 Dec 2014 12:30:14 +0100 Subject: [PATCH] Add exception in vm --- libevm/VM.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libevm/VM.h b/libevm/VM.h index be64c0ad1..3808455a9 100644 --- a/libevm/VM.h +++ b/libevm/VM.h @@ -573,6 +573,7 @@ template dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc con toBeCopied = _ext.codeAt(a); break; default: + BOOST_THROW_EXCEPTION(InvalidOpcode() << errinfo_comment("CALLDATACOPY, CODECOPY or EXTCODECOPY instruction requested.")); break; } unsigned el = index + (bigint)size > (u256)toBeCopied.size() ? (u256)toBeCopied.size() < index ? 0 : toBeCopied.size() - (unsigned)index : size;