about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-12-24 00:10:03 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-12-24 00:10:03 +0100
commitb681bdf9ffee707e071d4d2b601130ca8d66a5fa (patch)
tree9a6be1b10d9be53e00e1a364943654bb99d970eb
parent745199e77104ef7a1e5879daae5e344de24165ca (diff)
downloadmiasm-b681bdf9ffee707e071d4d2b601130ca8d66a5fa.tar.gz
miasm-b681bdf9ffee707e071d4d2b601130ca8d66a5fa.zip
Fix propagate undef
Let A and B undef.
If we have:
X = [A]
X and [A] can be set in the same equivalence class (even if A and B are
undef)
-rw-r--r--miasm/analysis/data_flow.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/miasm/analysis/data_flow.py b/miasm/analysis/data_flow.py
index 0a96ae8d..4f369965 100644
--- a/miasm/analysis/data_flow.py
+++ b/miasm/analysis/data_flow.py
@@ -1971,10 +1971,6 @@ class State(object):
             if not self.propagation_allowed(src):
                 continue
 
-            ## Dont create equivalence if dependence on undef
-            if dst.is_mem() and self.may_interfer(self.undefined, dst.ptr):
-                continue
-
             self.undefined.discard(dst)
             if dst in self.equivalence_classes.nodes():
                 self.equivalence_classes.del_element(dst)