diff options
| author | serpilliere <devnull@localhost> | 2012-02-20 10:57:40 +0100 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-02-20 10:57:40 +0100 |
| commit | c8043e1248af958b505a4575b53b9d3489cbfdb3 (patch) | |
| tree | d30730d6f44a23f3ad9976dcb07d9f6c66b6ebb1 /miasm/expression/expression.py | |
| parent | 8334044b43aa619c44af5e5de4999f48df38b1c7 (diff) | |
| download | focaccia-miasm-c8043e1248af958b505a4575b53b9d3489cbfdb3.tar.gz focaccia-miasm-c8043e1248af958b505a4575b53b9d3489cbfdb3.zip | |
fix evalabs bad inplace modif of expressions
Diffstat (limited to 'miasm/expression/expression.py')
| -rw-r--r-- | miasm/expression/expression.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm/expression/expression.py b/miasm/expression/expression.py index fd560c54..ae8b415b 100644 --- a/miasm/expression/expression.py +++ b/miasm/expression/expression.py @@ -115,6 +115,7 @@ class Expr: class ExprTop(Expr): def __init__(self, e=None): + fdqs self.e = e pass def __str__(self): @@ -680,6 +681,8 @@ class ExprCompose(Expr): def get_size(self): return max([x.stop for x in self.args]) - min([x.start for x in self.args]) def reload_expr(self, g = {}): + if self in g: + return g[self] args = [] for a in self.args: if isinstance(a, Expr): |