diff options
| author | Brandon Miller <brandon@vector35.com> | 2024-07-15 15:54:51 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2024-07-15 15:54:51 -0400 |
| commit | f7be5a952b0ea2fcf4583ff8413d96e4a4148bc0 (patch) | |
| tree | 243fb7281cee269ccaa444087baa672d65154283 /view/pe | |
| parent | 44162c89d20e764c0304daa850812e390aa16aca (diff) | |
Fix crash on load of AArch64 TE w/ Binja free
Diffstat (limited to 'view/pe')
| -rw-r--r-- | view/pe/teview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/pe/teview.cpp b/view/pe/teview.cpp index 1e89ed23..5e0a2a0e 100644 --- a/view/pe/teview.cpp +++ b/view/pe/teview.cpp @@ -259,7 +259,19 @@ bool TEView::Init() } } + if (!platform) + { + LogError("Platform not supported by this version of Binary Ninja"); + return false; + } + m_arch = platform->GetArchitecture(); + if (!m_arch) + { + LogError("Architecture not supported by this version of Binary Ninja"); + return false; + } + SetDefaultPlatform(platform); SetDefaultArchitecture(m_arch); |
