about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAymeric Vincent <aymeric.vincent@cea.fr>2016-03-09 10:26:07 +0100
committerAymeric Vincent <aymeric.vincent@cea.fr>2016-03-09 10:26:07 +0100
commit583da07b6dd76308b7be563009ed692653833f1f (patch)
treec13748cbf5b3f1e79d400a597414a3617d059557
parent9c4d5276b8b29d6f900c8184939468b028933cee (diff)
downloadmiasm-583da07b6dd76308b7be563009ed692653833f1f.tar.gz
miasm-583da07b6dd76308b7be563009ed692653833f1f.zip
Fix range checking when splitting blocks.
This prevents an error message when splitting a block at its end address.
-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 6e568740..57a777cd 100644
--- a/miasm2/core/asmbloc.py
+++ b/miasm2/core/asmbloc.py
@@ -935,7 +935,7 @@ class AsmCFG(DiGraph):
             range_start, range_stop = cur_block.get_range()
 
             for off in block_dst:
-                if not (off > range_start and off <= range_stop):
+                if not (off > range_start and off < range_stop):
                     continue
 
                 # `cur_block` must be splitted at offset `off`