about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-06-23 14:17:47 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2015-06-23 14:17:47 +0200
commita1cb2ec2ffcc0146964a376b5645ba0373712143 (patch)
treedcf0b30d98de93dc9a0429d0064248dcf710165e /miasm2/core/cpu.py
parentb6353292dc71afea2f6ac33d68ab83c3c77d2302 (diff)
parent8bca2287aa0ae827c00388a0463542eb6c072c9e (diff)
downloadmiasm-a1cb2ec2ffcc0146964a376b5645ba0373712143.tar.gz
miasm-a1cb2ec2ffcc0146964a376b5645ba0373712143.zip
Merge pull request #181 from fmonjalet/symbol_pool_err_handling
Symbol pool error handling
Diffstat (limited to 'miasm2/core/cpu.py')
-rw-r--r--miasm2/core/cpu.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index efb511ce..c42de507 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -958,9 +958,8 @@ class instruction(object):
                 if not name in symbols:
                     continue
                 if symbols[name].offset is None:
-                    default_size = self.get_symbol_size(x, symbols)
-                    # default value
-                    value = m2_expr.ExprInt_fromsize(default_size, 0)
+                    raise ValueError('The offset of label "%s" cannot be '
+                                     'determined' % name)
                 else:
                     size = x.size
                     if size is None: