about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-01-28 15:20:00 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-01-28 15:20:00 +0100
commit915b9c8f716f0b76546e6c399fbcb6e3a318b374 (patch)
tree51db2b4d31a4b4d1ac9d11408bae9d5b943e76f7
parentc73fa6e7b3a4f528dc6c03d79e3957d9e027cd17 (diff)
downloadmiasm-915b9c8f716f0b76546e6c399fbcb6e3a318b374.tar.gz
miasm-915b9c8f716f0b76546e6c399fbcb6e3a318b374.zip
Core/x86: fix job_done on null blocks
-rw-r--r--miasm2/core/asmbloc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py
index aa26cfbf..73c93b3f 100644
--- a/miasm2/core/asmbloc.py
+++ b/miasm2/core/asmbloc.py
@@ -450,6 +450,7 @@ def dis_bloc(mnemo, pool_bin, label, offset, job_done, symbol_pool,
         if instr is None:
             log_asmbloc.warning("cannot disasm at %X", int(off_i))
             if not cur_block.lines:
+                job_done.add(offset)
                 # Block is empty -> bad block
                 cur_block = asm_block_bad(label, errno=0)
             else: