diff options
| author | Brandon Miller <brandon@vector35.com> | 2025-06-09 09:40:18 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-06-09 09:43:50 -0400 |
| commit | c8f4346609f4b51474481d9e6b869076e5a96534 (patch) | |
| tree | be662b79367075b35e61b0712072f375f505a29f /python/lineardisassembly.py | |
| parent | 6069b9db08041dffda12d37dd48c4b2cff2adea2 (diff) | |
More None checks when querying IL internal to API
Diffstat (limited to 'python/lineardisassembly.py')
| -rw-r--r-- | python/lineardisassembly.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py index e6b684d3..fb981ba1 100644 --- a/python/lineardisassembly.py +++ b/python/lineardisassembly.py @@ -59,7 +59,9 @@ class LinearDisassemblyLine: if obj.identifier.name == "HLIL Function Body": il_func = function.hlil elif obj.identifier.name == "HLIL SSA Function Body": - il_func = function.hlil.ssa_form + func_hlil = function.hlil + if func_hlil is not None: + il_func = func_hlil.ssa_form elif obj.identifier.name == "Language Representation Function Body": il_func = function.hlil |
