From cead4d7cd899062155d13f1740c1a44eeb3ecd7c Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 12 Mar 2015 10:09:07 +0100 Subject: Depgraph: exprs in affected_lines must appear only once. --- miasm2/analysis/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miasm2') diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py index 7ec9d7fa..3583f956 100644 --- a/miasm2/analysis/depgraph.py +++ b/miasm2/analysis/depgraph.py @@ -359,8 +359,8 @@ class DependencyResult(object): # Build a single affectation block according to history for label in self.relevant_labels[::-1]: - affected_lines = [line.line_nb for line in lines - if line.label == label] + affected_lines = set(line.line_nb for line in lines + if line.label == label) irs = self._ira.blocs[label].irs for line_nb in sorted(affected_lines): affects.append(irs[line_nb]) -- cgit 1.4.1