diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/basicblock.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/basicblock.py b/python/basicblock.py index 4a451a38..98a7b212 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -176,6 +176,8 @@ class BasicBlock(object): start = self.start while start < self.end: length = self.view.get_instruction_length(start) + if length == 0: # invalid instruction. avoid infinite loop + break self._instLengths.append(length) self._instStarts.append(start) start += length |
