one line calldata bugfix - four line version

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

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

Loading…
Cancel
Save