diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-06-23 14:17:47 +0200 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-06-23 14:17:47 +0200 |
| commit | a1cb2ec2ffcc0146964a376b5645ba0373712143 (patch) | |
| tree | dcf0b30d98de93dc9a0429d0064248dcf710165e /miasm2/core/asmbloc.py | |
| parent | b6353292dc71afea2f6ac33d68ab83c3c77d2302 (diff) | |
| parent | 8bca2287aa0ae827c00388a0463542eb6c072c9e (diff) | |
| download | miasm-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/asmbloc.py')
| -rw-r--r-- | miasm2/core/asmbloc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py index a5dd8142..1a2d7a91 100644 --- a/miasm2/core/asmbloc.py +++ b/miasm2/core/asmbloc.py @@ -292,6 +292,8 @@ class asm_symbol_pool: Note that there is a special case when the offset is a list it happens when offsets are recomputed in resolve_symbol* """ + if label is None: + raise ValueError('label should not be None') if not label.name in self._name2label: raise ValueError('label %s not in symbol pool' % label) if offset is not None and offset in self._offset2label: |