Fixes issues with NoneType and restricts rlp version (#1567)

* Fix when args are NoneType

* Fix rlp
pull/1569/head
Nikhil Parasaram 3 years ago committed by GitHub
parent b9fdf359ac
commit 70348b2066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/analysis/module/modules/integer.py
  2. 2
      requirements.txt

@ -162,7 +162,9 @@ class IntegerArithmetics(DetectionModule):
def _handle_exp(self, state): def _handle_exp(self, state):
op0, op1 = self._get_args(state) op0, op1 = self._get_args(state)
if op1.value == 0 or op0.value < 2: if (op1.symbolic is False and op1.value == 0) or (
op0.symbolic is False and op0.value < 2
):
return return
if op0.symbolic and op1.symbolic: if op0.symbolic and op1.symbolic:
constraint = And( constraint = And(

@ -27,7 +27,7 @@ pyparsing<3,>=2.0.2
pytest-cov pytest-cov
pytest_mock pytest_mock
requests requests
rlp rlp<3.0.0
semantic_version semantic_version
transaction>=2.2.1 transaction>=2.2.1
typing-extensions<4,>=3.7.4 typing-extensions<4,>=3.7.4

Loading…
Cancel
Save