about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2016-01-30 16:43:30 +0100
committerCamille Mougey <commial@gmail.com>2016-01-30 16:43:30 +0100
commitdbf10438741443d59b8db500905d3d110a34c73c (patch)
tree678a6229f3ab9bd93207faedc9425d89da56275a /miasm2/core/cpu.py
parent32b2b3ea15b42cbc76cb49119e76ee6e031f72ce (diff)
parent7ed8f7c5638cdca4950d05b8021233d13e339fb7 (diff)
downloadmiasm-dbf10438741443d59b8db500905d3d110a34c73c.tar.gz
miasm-dbf10438741443d59b8db500905d3d110a34c73c.zip
Merge pull request #313 from serpilliere/x86_fix
X86 fix
Diffstat (limited to 'miasm2/core/cpu.py')
-rw-r--r--miasm2/core/cpu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index d304108d..8195f920 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -262,7 +262,8 @@ def extract_ast_core(v, my_id2expr, my_int2expr):
         size = sizes.pop()
         my_int2expr = lambda x: m2_expr.ExprInt(x, size)
     else:
-        raise ValueError('multiple sizes in ids')
+        # Multiple sizes in ids
+        raise StopIteration
     e = ast_raw2expr(ast_tokens, my_id2expr, my_int2expr)
     return e