We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 975a527 commit 0b87becCopy full SHA for 0b87bec
miasm/core/asmblock.py
@@ -623,6 +623,11 @@ def sanity_check(self):
623
for loc_key in self._nodes:
624
if loc_key not in self._loc_key_to_block:
625
raise RuntimeError("Not supported yet: every node must have a corresponding AsmBlock")
626
+
627
+ block = self.loc_key_to_block(loc_key)
628
+ if not block.lines and not isinstance(block, AsmBlockBad):
629
+ raise RuntimeError("Blocks cannot be empty")
630
631
# No next constraint to self
632
if (loc_key, loc_key) in next_edges:
633
raise RuntimeError('Bad constraint: self in next')
0 commit comments