diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-07-06 11:10:04 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-07-06 11:10:04 -0400 |
| commit | bbc3116e82e8d92084a0e667e6f5222fc1455999 (patch) | |
| tree | e85c3f9f739d7369718134590c6d2a5adf3be29e /python/basicblock.py | |
| parent | bc8f53abc3885824ae1eaca79c95ce83a3a3a643 (diff) | |
python: fix BasicBlock iteration for invalid instructions
Diffstat (limited to 'python/basicblock.py')
| -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 c55e15f0..a79b53ad 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -312,6 +312,8 @@ class BasicBlock(object): inst_info = self.arch.get_instruction_info(data, idx) inst_text = self.arch.get_instruction_text(data, idx) + if inst_info is None: + break yield inst_text idx += inst_info.length |
