Skip to content

Commit 608bd9c

Browse files
committed
Return None on ILException in get_low_level_il_at
1 parent 58c06d8 commit 608bd9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/function.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,11 @@ def get_low_level_il_at(
18001800

18011801
idx = core.BNGetLowLevelILForInstruction(self.handle, arch.handle, addr)
18021802

1803-
llil = self.llil
1803+
try:
1804+
llil = self.llil
1805+
except ILException:
1806+
return None
1807+
18041808
if idx == len(llil):
18051809
return None
18061810

0 commit comments

Comments
 (0)