Fix an edge case (#1820)

pull/1821/head
Nikhil Parasaram 1 year ago committed by GitHub
parent 14d32a2b8c
commit c7255768b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/laser/ethereum/instructions.py

@ -1087,6 +1087,10 @@ class Instruction:
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

Loading…
Cancel
Save