Skip to content

Commit c725576

Browse files
authored
Fix an edge case (#1820)
1 parent 14d32a2 commit c725576

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mythril/laser/ethereum/instructions.py

+4
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,10 @@ def codecopy_(self, global_state: GlobalState) -> List[GlobalState]:
10871087
global_state.mstate.stack.pop(),
10881088
)
10891089
code = global_state.environment.code.bytecode
1090+
if isinstance(code, tuple):
1091+
log.debug("unsupported symbolic code for CODECOPY")
1092+
return [global_state]
1093+
10901094
if code.startswith("0x"):
10911095
code = code[2:]
10921096
code_size = len(code) // 2

0 commit comments

Comments
 (0)