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 = [] issues = []
svm = statespace.svm
for k in svm.nodes: for k in statespace.nodes:
node = svm.nodes[k] node = statespace.nodes[k]
for instruction in node.instruction_list: for instruction in node.instruction_list:

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

Loading…
Cancel
Save