about summary refs log tree commit diff stats
path: root/miasm2/analysis/binary.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-06-19 17:53:45 +0200
committerGitHub <noreply@github.com>2018-06-19 17:53:45 +0200
commit0adddb12a7410c4bbdd6ee79252e9bf05ca22818 (patch)
tree92facadca71fc07d7760c60d2ca877774c73579b /miasm2/analysis/binary.py
parent8f5ca332780cf9e08761060e9903bc085dbc8430 (diff)
parentf1b32ba2b8db22a5f92a2734af55e9a5dba2271e (diff)
downloadmiasm-0adddb12a7410c4bbdd6ee79252e9bf05ca22818.tar.gz
miasm-0adddb12a7410c4bbdd6ee79252e9bf05ca22818.zip
Merge pull request #770 from serpilliere/ida_guess_machine_addr
Example/ida: use addr to guess arch
Diffstat (limited to '')
-rw-r--r--miasm2/analysis/binary.py2
1 files changed, 2 insertions, 0 deletions
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: