about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/core/graph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/core/graph.py b/miasm2/core/graph.py
index cd4da705..b11c2dd8 100644
--- a/miasm2/core/graph.py
+++ b/miasm2/core/graph.py
@@ -328,6 +328,8 @@ shape = "box"
             if self._nodes_pred[n] >= 2:
                 for p in self.predecessors_iter(n):
                     runner = p
+                    if runner not in idoms:
+                        continue
                     while runner != idoms[n]:
                         if n not in df:
                             df[n] = set()