diff options
| -rw-r--r-- | miasm2/core/asmbloc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py index 945eb990..98d6d2d7 100644 --- a/miasm2/core/asmbloc.py +++ b/miasm2/core/asmbloc.py @@ -217,6 +217,8 @@ class asm_bloc: if not self.lines: return None for i in xrange(-1, -1 - self.lines[0].delayslot - 1, -1): + if not 0 <= i < len(self.lines): + return None l = self.lines[i] if l.splitflow() or l.breakflow(): raise NotImplementedError('not fully functional') |