about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2015-06-10 14:10:41 +0200
committerCamille Mougey <commial@gmail.com>2015-06-10 14:10:41 +0200
commite4557a93d4bafb3ae86a0fc5280592ee98c1fb9f (patch)
treea5d2d264886e3764004238ea730565739aade70b
parenteb85ae0db115b40190446c0aa841e8a1b562eece (diff)
parent836b83c8a4883d1aba928392fcf7741a2678826e (diff)
downloadmiasm-e4557a93d4bafb3ae86a0fc5280592ee98c1fb9f.tar.gz
miasm-e4557a93d4bafb3ae86a0fc5280592ee98c1fb9f.zip
Merge pull request #174 from serpilliere/fix_dis_overlap
Core/Asmbloc: fix split_bloc with instruction overlapping
-rw-r--r--miasm2/core/asmbloc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py
index 1505bebc..a5dd8142 100644
--- a/miasm2/core/asmbloc.py
+++ b/miasm2/core/asmbloc.py
@@ -466,7 +466,7 @@ def split_bloc(mnemo, attrib, pool_bin, blocs,
             log_asmbloc.debug("split bloc %x", off)
             if new_b is None:
                 log_asmbloc.error("cannot split %x!!", off)
-                break
+                continue
             if dis_bloc_callback:
                 offsets_to_dis = set(
                     [x.label.offset for x in new_b.bto