Fix instruction list offset due to added JUMPDEST

pull/499/head
Dominik Muhs 6 years ago
parent ecaeaec91f
commit 4e56c9fc75
  1. 2
      mythril/laser/ethereum/svm.py

@ -218,7 +218,7 @@ class LaserEVM:
new_node.flags |= NodeFlags.FUNC_ENTRY new_node.flags |= NodeFlags.FUNC_ENTRY
except IndexError: except IndexError:
new_node.flags |= NodeFlags.FUNC_ENTRY new_node.flags |= NodeFlags.FUNC_ENTRY
address = state.environment.code.instruction_list[state.mstate.pc - 1]['address'] address = state.environment.code.instruction_list[state.mstate.pc]['address']
environment = state.environment environment = state.environment
disassembly = environment.code disassembly = environment.code

Loading…
Cancel
Save