about summary refs log tree commit diff stats
path: root/miasm/core/asmblock.py
diff options
context:
space:
mode:
authorWilliam Bruneau <william.bruneau@epfedu.fr>2019-09-20 12:52:12 +0200
committerWilliam Bruneau <william.bruneau@epfedu.fr>2019-09-20 13:17:59 +0200
commit9d5e0d20f6374f73d56e97decdac570108a1ff98 (patch)
treed461bdbb4969302088071816da65f963246ec655 /miasm/core/asmblock.py
parent326673c7dad5d915f88a8fcbcbfbab6287839933 (diff)
downloadfocaccia-miasm-9d5e0d20f6374f73d56e97decdac570108a1ff98.tar.gz
focaccia-miasm-9d5e0d20f6374f73d56e97decdac570108a1ff98.zip
Codespell: fix some spelling mistakes
Diffstat (limited to 'miasm/core/asmblock.py')
-rw-r--r--miasm/core/asmblock.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/miasm/core/asmblock.py b/miasm/core/asmblock.py
index 0e715f41..7f3265e0 100644
--- a/miasm/core/asmblock.py
+++ b/miasm/core/asmblock.py
@@ -176,19 +176,19 @@ class AsmBlock(object):
         offset = loc_db.get_location_offset(loc_key)
         if offset not in offsets:
             log_asmblock.warning(
-                'cannot split bloc at %X ' % offset +
+                'cannot split block at %X ' % offset +
                 'middle instruction? default middle')
             offsets.sort()
             return None
-        new_bloc = AsmBlock(loc_key)
+        new_block = AsmBlock(loc_key)
         i = offsets.index(offset)
 
-        self.lines, new_bloc.lines = self.lines[:i], self.lines[i:]
+        self.lines, new_block.lines = self.lines[:i], self.lines[i:]
         flow_mod_instr = self.get_flow_instr()
         log_asmblock.debug('flow mod %r', flow_mod_instr)
         c = AsmConstraint(loc_key, AsmConstraint.c_next)
-        # move dst if flowgraph modifier was in original bloc
-        # (usecase: split delayslot bloc)
+        # move dst if flowgraph modifier was in original block
+        # (usecase: split delayslot block)
         if flow_mod_instr:
             for xx in self.bto:
                 log_asmblock.debug('lbl %s', xx)
@@ -197,11 +197,11 @@ class AsmBlock(object):
             )
             c_to = [x for x in self.bto if x.c_t != AsmConstraint.c_next]
             self.bto = set([c] + c_to)
-            new_bloc.bto = c_next
+            new_block.bto = c_next
         else:
-            new_bloc.bto = self.bto
+            new_block.bto = self.bto
             self.bto = set([c])
-        return new_bloc
+        return new_block
 
     def get_range(self):
         """Returns the offset hull of an AsmBlock"""
@@ -738,7 +738,7 @@ class AsmCFG(DiGraph):
                              if dloc_key == loc_key)
 
             if len(pred_next) > 1:
-                raise RuntimeError("Too many next constraints for bloc %r"
+                raise RuntimeError("Too many next constraints for block %r"
                                    "(%s)" % (loc_key,
                                              pred_next))
 
@@ -1578,7 +1578,7 @@ class disasmEngine(object):
         @blocks: (optional) AsmCFG instance of already disassembled blocks to
                 merge with
         """
-        log_asmblock.info("dis bloc all")
+        log_asmblock.info("dis block all")
         job_done = set()
         if blocks is None:
             blocks = AsmCFG(self.loc_db)