fix calldata constraint

pull/654/head
Nathan 6 years ago
parent c9f6f8b2f3
commit 28c611fc06
  1. 4
      mythril/laser/ethereum/state.py

@ -113,7 +113,9 @@ class Calldata:
except IndexError: except IndexError:
return BitVecVal(0, 8) return BitVecVal(0, 8)
else: else:
constraints = [Implies(item != 0, UGT(self.calldatasize, item))] constraints = [
Implies(self._calldata[item] != 0, UGT(self.calldatasize, item))
]
self._not_yet_added_constraints += constraints self._not_yet_added_constraints += constraints
return self._calldata[item] return self._calldata[item]

Loading…
Cancel
Save