one line calldata bugfix - four line version

pull/557/head
Nathan 6 years ago
parent 8196dc1159
commit 415aaf5e62
  1. 6
      mythril/laser/ethereum/state.py

@ -64,7 +64,11 @@ class Calldata:
def __getitem__(self, item):
if isinstance(item, slice):
stop = get_concrete_int(item.stop)
try:
stop = get_concrete_int(item.stop)
except AttributeError:
stop = item.stop
if self.concrete and isinstance(stop, int):
calldatasize = get_concrete_int(self.calldatasize)
if stop > calldatasize:

Loading…
Cancel
Save