|
|
|
@ -214,7 +214,7 @@ def _check_sstore(state, taint_result): |
|
|
|
|
return taint_result.check(state, -2) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _search_children(statespace, node, expression, taint_result=None, constraint=[], index=0, depth=0, max_depth=64): |
|
|
|
|
def _search_children(statespace, node, expression, taint_result=None, constraint=None, index=0, depth=0, max_depth=64): |
|
|
|
|
""" |
|
|
|
|
Checks the statespace for children states, with JUMPI or SSTORE instuctions, |
|
|
|
|
for dependency on expression |
|
|
|
@ -227,6 +227,9 @@ def _search_children(statespace, node, expression, taint_result=None, constraint |
|
|
|
|
:param max_depth: Max depth to explore |
|
|
|
|
:return: List of states that match the opcodes and are dependent on expression |
|
|
|
|
""" |
|
|
|
|
if constraint is None: |
|
|
|
|
constraint = [] |
|
|
|
|
|
|
|
|
|
logging.debug("SEARCHING NODE for usage of an overflowed variable %d", node.uid) |
|
|
|
|
|
|
|
|
|
if taint_result is None: |
|
|
|
|