diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-05-26 11:04:07 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-05-26 11:05:25 -0400 |
| commit | 559b977c4e6989d62bdb0340e202a82334017ee4 (patch) | |
| tree | c621502f62c7cc9a8571512872184be6b6697331 | |
| parent | 6d2531c122913b22b349fc08887872f33db7d39b (diff) | |
Fix error in bv.llil_basic_blocks when low_level_il function is not available
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index c2374aa5..fa98e5cd 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -2339,7 +2339,9 @@ class BinaryView: def llil_basic_blocks(self) -> Generator['lowlevelil.LowLevelILBasicBlock', None, None]: """A generator of all LowLevelILBasicBlock objects in the BinaryView""" for func in self: - yield from func.low_level_il.basic_blocks + llil = func.low_level_il + if llil is not None: + yield from llil.basic_blocks @property def mlil_basic_blocks(self) -> Generator['mediumlevelil.MediumLevelILBasicBlock', None, None]: |
