diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2016-02-25 10:54:50 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2016-02-25 10:54:50 +0100 |
| commit | 5048ca523bded9a903dbc7b9d60753c31a734b9f (patch) | |
| tree | 9184b17deb0a6924e71b373530091f5d7c113b9d /miasm2/expression/expression.py | |
| parent | 55cc4ec75424a841748b62e230a1abb01b258014 (diff) | |
| download | miasm-5048ca523bded9a903dbc7b9d60753c31a734b9f.tar.gz miasm-5048ca523bded9a903dbc7b9d60753c31a734b9f.zip | |
Handle ExprAff in MatchExpr
Diffstat (limited to 'miasm2/expression/expression.py')
| -rw-r--r-- | miasm2/expression/expression.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/miasm2/expression/expression.py b/miasm2/expression/expression.py index bda0dbc4..6b2526f5 100644 --- a/miasm2/expression/expression.py +++ b/miasm2/expression/expression.py @@ -1323,6 +1323,17 @@ def MatchExpr(e, m, tks, result=None): return False return result + elif isinstance(e, ExprAff): + if not isinstance(m, ExprAff): + return False + r = MatchExpr(e.src, m.src, tks, result) + if r is False: + return False + r = MatchExpr(e.dst, m.dst, tks, result) + if r is False: + return False + return result + else: raise NotImplementedError("MatchExpr: Unknown type: %s" % type(e)) |