about summary refs log tree commit diff stats
path: root/miasm/core/asmblock.py
diff options
context:
space:
mode:
authorVladislav Hrčka <nofiv@users.noreply.github.com>2020-07-24 09:56:29 -0400
committerMarc-Etienne M.Léveillé <leveille@eset.com>2020-07-24 09:56:29 -0400
commit12e4d4679ae1e7c58e82bf08f2b3076e67b3cd47 (patch)
tree1575ce7f44eda5a2efbeec242befd7cd913bb3f3 /miasm/core/asmblock.py
parenta1c2dcbf6c4f3191984a781119d131c7c7f8d9ad (diff)
downloadfocaccia-miasm-12e4d4679ae1e7c58e82bf08f2b3076e67b3cd47.tar.gz
focaccia-miasm-12e4d4679ae1e7c58e82bf08f2b3076e67b3cd47.zip
output_interval was never updated and hence always empty
which was making the overlap check meaningless
Diffstat (limited to 'miasm/core/asmblock.py')
-rw-r--r--miasm/core/asmblock.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/miasm/core/asmblock.py b/miasm/core/asmblock.py
index 6f965be8..975f93c5 100644
--- a/miasm/core/asmblock.py
+++ b/miasm/core/asmblock.py
@@ -1163,6 +1163,7 @@ def asm_resolve_final(mnemo, asmcfg, loc_db, dst_interval=None):
             instruction_interval = interval([(offset, offset + instr.l - 1)])
             if not (instruction_interval & output_interval).empty:
                 raise RuntimeError("overlapping bytes %X" % int(offset))
+            output_interval = output_interval.union(instruction_interval)
             instr.offset = offset
             offset += instr.l
     return patches