pull/23/head
Bernhard Mueller 7 years ago
parent 2c6ead6f5a
commit 338b954c19
  1. 5
      mythril/analysis/modules/unchecked_suicide.py
  2. 9
      mythril/analysis/symbolic.py

@ -15,10 +15,9 @@ def execute(statespace):
issues = []
svm = statespace.svm
for k in svm.nodes:
node = svm.nodes[k]
for k in statespace.nodes:
node = statespace.nodes[k]
for instruction in node.instruction_list:

@ -1,7 +1,5 @@
from laser.ethereum import svm
from .ops import *
import re
import logging
class StateSpace:
@ -71,18 +69,15 @@ class StateSpace:
for index in self.sstors:
for s in self.sstors[index]:
taint = True
s.tainted = True
# For now we simply 'taint' every storage location that can be written to without any constraint on msg.sender
for constraint in s.node.constraints:
if ("caller" in str(constraint)):
taint = False
s.tainted = False
break
if taint:
s.tainted = True
def find_storage_write(self, index):

Loading…
Cancel
Save