From f1b32ba2b8db22a5f92a2734af55e9a5dba2271e Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 18 Jun 2018 09:27:45 +0200 Subject: Example/ida: use addr to guess arch Some arch like ARM depends on address in order to determine which attributes have to be used during analysis --- miasm2/analysis/binary.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'miasm2/analysis/binary.py') diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py index f5a727d7..5d9374da 100644 --- a/miasm2/analysis/binary.py +++ b/miasm2/analysis/binary.py @@ -202,6 +202,8 @@ class ContainerELF(Container): offset = symb.value if offset == 0: continue + if not name: + continue try: self._symbol_pool.add_location(name, offset) except ValueError: -- cgit 1.4.1