Skip to content

Commit

Permalink
Fix an edge case (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
norhh authored Nov 7, 2023
1 parent 14d32a2 commit c725576
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythril/laser/ethereum/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,10 @@ def codecopy_(self, global_state: GlobalState) -> List[GlobalState]:
global_state.mstate.stack.pop(),
)
code = global_state.environment.code.bytecode
if isinstance(code, tuple):
log.debug("unsupported symbolic code for CODECOPY")
return [global_state]

if code.startswith("0x"):
code = code[2:]
code_size = len(code) // 2
Expand Down

0 comments on commit c725576

Please sign in to comment.